danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
902 stars 105 forks source link

doc: add "accent" colour to spec #402

Open Cybolic opened 1 month ago

Cybolic commented 1 month ago

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

trueNAHO commented 1 month ago

Thanks for doing the research!

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

danth commented 1 month ago

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).