From 639c79972da99e79576136e0b426be3f40433e54 Mon Sep 17 00:00:00 2001 From: EliverLara Date: Sun, 5 Dec 2021 14:15:32 -0600 Subject: [PATCH] Gtk-4: Fix missing separator in lists rows --- gtk-4.0/gtk-dark.css | 8 ++++++-- gtk-4.0/gtk.css | 8 ++++++-- gtk-4.0/widgets/_lists.scss | 11 ++++++++++- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/gtk-4.0/gtk-dark.css b/gtk-4.0/gtk-dark.css index d9185c3..71258c9 100755 --- a/gtk-4.0/gtk-dark.css +++ b/gtk-4.0/gtk-dark.css @@ -2677,13 +2677,17 @@ button:visited { /********* * Lists * *********/ -list { +list, listview { color: #C3C7D1; background-color: #181b28; border-color: rgba(12, 14, 21, 0.8); } - list:backdrop { + list:backdrop, listview:backdrop { background-color: #1a1d2b; border-color: rgba(13, 16, 23, 0.82); } + list.horizontal row.separator, list.separators.horizontal > row:not(.separator), listview.horizontal row.separator, listview.separators.horizontal > row:not(.separator) { + border-left: 1px solid rgba(12, 14, 21, 0.8); } + list:not(.horizontal) row.separator, list.separators:not(.horizontal) > row:not(.separator), listview:not(.horizontal) row.separator, listview.separators:not(.horizontal) > row:not(.separator) { + border-bottom: 1px solid rgba(12, 14, 21, 0.8); } row { padding: 5px 11px; diff --git a/gtk-4.0/gtk.css b/gtk-4.0/gtk.css index 1625664..d2fc81a 100755 --- a/gtk-4.0/gtk.css +++ b/gtk-4.0/gtk.css @@ -2677,13 +2677,17 @@ button:visited { /********* * Lists * *********/ -list { +list, listview { color: #C3C7D1; background-color: #181b28; border-color: rgba(12, 14, 21, 0.8); } - list:backdrop { + list:backdrop, listview:backdrop { background-color: #1a1d2b; border-color: rgba(13, 16, 23, 0.82); } + list.horizontal row.separator, list.separators.horizontal > row:not(.separator), listview.horizontal row.separator, listview.separators.horizontal > row:not(.separator) { + border-left: 1px solid rgba(12, 14, 21, 0.8); } + list:not(.horizontal) row.separator, list.separators:not(.horizontal) > row:not(.separator), listview:not(.horizontal) row.separator, listview.separators:not(.horizontal) > row:not(.separator) { + border-bottom: 1px solid rgba(12, 14, 21, 0.8); } row { padding: 5px 11px; diff --git a/gtk-4.0/widgets/_lists.scss b/gtk-4.0/widgets/_lists.scss index ad06b45..e9e8540 100644 --- a/gtk-4.0/widgets/_lists.scss +++ b/gtk-4.0/widgets/_lists.scss @@ -1,7 +1,7 @@ /********* * Lists * *********/ -list { +list, listview { color: $text_color; background-color: $base_color; border-color: $borders_color; @@ -10,6 +10,15 @@ list { background-color: $backdrop_base_color; border-color: $backdrop_borders_color; } + + &.horizontal row.separator, + &.separators.horizontal > row:not(.separator) { + border-left: 1px solid $borders_color; + } + &:not(.horizontal) row.separator, + &.separators:not(.horizontal) > row:not(.separator) { + border-bottom: 1px solid $borders_color; + } } row {