[gtk/wip/jimmac/dark-prelights: 52/53] Adwaita: unified sidebar styles (fixed)
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/dark-prelights: 52/53] Adwaita: unified sidebar styles (fixed)
- Date: Thu, 26 Nov 2020 13:40:33 +0000 (UTC)
commit 4b713ac808de747877a71a5390265253ee183834
Author: Jakub Steiner <jimmac gmail com>
Date: Fri Nov 20 11:26:13 2020 +0100
Adwaita: unified sidebar styles (fixed)
- stacksidebar focus, separation and color as everything else
- eliminate placessidebar double padding
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3382
gtk/theme/Adwaita/_common.scss | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index ad3b06788d..1852f90119 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3565,6 +3565,10 @@ filechooserbutton:drop(active) {
}
stacksidebar {
+ //not a regular list
+ list.separators:not(.horizontal) > row:not(.separator) {
+ border-bottom: none;
+ }
row {
padding: 10px 4px;
@@ -3575,8 +3579,20 @@ stacksidebar {
&.needs-attention > label {
@extend %needs_attention;
-
- background-size: 6px 6px, 0 0;
+ background-size: 6px 6px, 0 0;
+ }
+ &:selected {
+ background-color: $menu_selected_color;
+ border-radius: $menu_radius;
+ color: $fg_color;
+ }
+ &:selected:hover:dir(ltr), &:selected:hover:dir(rtl) {
+ background-color: darken($menu_selected_color,5%);
+ }
+ &:focus:focus-visible {
+ outline-width: 0;
+ background-color: $selected_bg_color;
+ color: $selected_fg_color;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]