danth / stylix

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

gtk: does not use standard selection color #289

Closed danth closed 4 months ago

danth commented 6 months ago

It appears to be using base0A with the foreground and transparency varying per application, as seen below.

Evince Document Viewer 2024-03-17-16:14:50_117441352 Gnome Files 2024-03-17-16:20:35_157112430 2024-03-17-16:20:49_154143150 Librewolf 2024-03-17-16:28:34_185940048

Originally posted by @dafitt in https://github.com/danth/stylix/pull/278#issuecomment-2002510852

danth commented 6 months ago

See also: #277

dafitt commented 6 months ago

I think i have found a clue:

libadwaita documentation #compatibility-colors

@theme_selected_bg_color  @accent_bg_color
@theme_selected_fg_color  @accent_fg_color

It seems libadwaita and adw-gtk3 are using the accent_colors for selections by default, which is set to base0A here.