stylix icon indicating copy to clipboard operation
stylix copied to clipboard

doc: add "accent" colour to spec

Open Cybolic opened this issue 1 year ago • 3 comments

It would be nice if "accent color", or a similar name, could be added to the spec to ensure different toolkits keep a consistent look.

I noticed this issue due to the difference in how Gtk and Qt apps are styled and I can't seem to find a conclusive description in the style guide as to which colour should be the the "accent" colour in each toolkit. I suspect that the KDE interpretation is the more correct one, but I could be wrong.

Gtk currently uses base0A as the accent - same as focused window and warnings. Qt/KDE currently uses base0D for decoration, focus and selection - same as unfocused list items and unfocused windows.

In effect, this means that Gtk and Qt apps are largely using two different colours to highlight elements, resulting in a mismatched look.

For reference, this is how buttons in different file selectors look on my desktop:

Gtk: image Qt: image

Cybolic avatar May 28 '24 01:05 Cybolic

Thanks for doing the research!

Actually, this is a known issue: https://github.com/danth/stylix/issues/249.

trueNAHO avatar May 28 '24 10:05 trueNAHO

I believe base0D is normally blue. In the long term, we could consider allowing users to choose between base08 - base0F as their accent color, since any should work (although arguably this could be done by swapping colors around in the scheme itself).

danth avatar May 31 '24 19:05 danth

Image Image

I've made an option that seems to be working okay for me. I should probably add some kind of check to make sure the option has a valid value. The color replacement was done with a regex search and replace so it may be a bit sloppy and i can't guarantee every module is correct.

soda-mountain avatar Aug 31 '25 13:08 soda-mountain