diff options
author | Jakub Steiner <jimmac@gmail.com> | 2020-10-13 21:27:17 +0200 |
---|---|---|
committer | Jakub Steiner <jimmac@gmail.com> | 2020-10-13 21:27:17 +0200 |
commit | f1e9f853decfba7e47d4555722b63350ffb3fbaa (patch) | |
tree | f05f045e595c3a30d8f9d98e3c4f8bb5d90bf8d2 /gtk/theme | |
parent | 77d4729483e2ecbe373aa2697cb9b409caf418b9 (diff) | |
download | gtk+-f1e9f853decfba7e47d4555722b63350ffb3fbaa.tar.gz |
Adwaita: selected:hover and focus:selected:hover stateswip/jimmac/sidebar-hover-selected-focus
- getting pretty deep, but visually seems to make sense. Selected row hovers
increase contrast.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3251
Diffstat (limited to 'gtk/theme')
-rw-r--r-- | gtk/theme/Adwaita/_common.scss | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 8f45f24d74..212ee4ae07 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -3460,10 +3460,11 @@ separator.sidebar { outline-width: 0; color: $selected_fg_color; background-color: $selected_bg_color; + &:hover { background-color: darken($selected_bg_color,10%); } } &:hover:not(:last-child) { /* FIXME: dirty specificity bump */ - color: $fg_color; - background-color: $menu_selected_color; + color: $selected_fg_color; + background-color: darken(desaturate($selected_bg_color,100%),10%); } } |