sshwifty icon indicating copy to clipboard operation
sshwifty copied to clipboard

Feature request - background color per host

Open yozart opened this issue 7 months ago • 4 comments

Hello,

can you add the feature to set the background color of a tab directly in the presets of the host.

Being able to set colors for every environment is a simple way to avoid people working into invalid environments.

yozart avatar Apr 16 '25 15:04 yozart

Hi, I do agree with the point. But after inspecting the code, I found quite a few things must be changed before this feature can be implemented.

Is this an emergency? If not, then I'll have to delay it for later.

nirui avatar Apr 17 '25 11:04 nirui

Nothing can be an emergency on a project you're working freely. Just a great, nice to have, feature to add on the stack.

True question is more about : where does it stand in the stack of features ? ;) I guess community must decide (or you :p)

yozart avatar Apr 17 '25 13:04 yozart

Hi,

I've added a new option called TabColor under Preset settings, which should allow you to specify the console background and tab color for a given Preset.

It accepts a hex color value, similar to the format used in CSS files but without the # symbol, FFFFFF is pure white and 000000 is pure black. You can generate the color here: https://www.w3schools.com/colors/colors_picker.asp (remember to remove the # symbol when applying)

Be aware that, you should only specify a dark color, because the foreground text is still white.

This change only effects admin defined Presets, users are still not allowed to have customized color because most colors are too bright to be useful for background anyways.

The change is shipped in version 0.3.21, which is released now. You can give it a try to see if it fits your requirements, and post follow ups when needed.

nirui avatar Apr 21 '25 12:04 nirui

Awesome, it works like a charm ! Thanks a lot that's exactly what I needed.

great work

yozart avatar Apr 22 '25 07:04 yozart