[gtk/wip/jimmac/sidebar-hover-selected-focus] Adwaita: selected:hover and focus:selected:hover states
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/sidebar-hover-selected-focus] Adwaita: selected:hover and focus:selected:hover states
- Date: Tue, 13 Oct 2020 19:29:17 +0000 (UTC)
commit f1e9f853decfba7e47d4555722b63350ffb3fbaa
Author: Jakub Steiner <jimmac gmail com>
Date: Tue Oct 13 21:27:17 2020 +0200
Adwaita: selected:hover and focus:selected:hover states
- getting pretty deep, but visually seems to make sense. Selected row hovers
increase contrast.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3251
gtk/theme/Adwaita/_common.scss | 5 +++--
1 file 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%);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]