From 627ec82e6027520c62fb2df3bc646ffaed0f69a5 Mon Sep 17 00:00:00 2001 From: Jakub Steiner Date: Mon, 13 Jul 2020 16:01:01 +0200 Subject: [PATCH] Adwaita: sidebar color for file picker - use menu like hovers and desaturated selected_bg_color Partially addresses https://gitlab.gnome.org/GNOME/gtk/-/issues/1586 --- gtk/theme/Adwaita/_common.scss | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 49199896bf..74e3372d2a 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -3344,17 +3344,20 @@ placessidebar { > revealer { padding: 0 14px; } &:selected { - background-color: $menu_selected_color; - color: $fg_color; + background-color: desaturate($selected_bg_color,100%); + color: $selected_fg_color; - &:focus, &:hover { + &:focus { + outline-width: 0; color: $selected_fg_color; background-color: $selected_bg_color; } + &:hover:not(:last-child) { /* FIXME: dirty specificity bump */ + color: $fg_color; + background-color: $menu_selected_color; + } } - - &:disabled { color: $insensitive_fg_color; } image.sidebar-icon { @@ -3415,7 +3418,7 @@ placesview { -gtk-icon-transform: rotate(-0.5turn); } - row.activatable:hover { background-color: transparent; } + row.activatable:hover { } > actionbar > revealer > box > box{ border-spacing: 6px;