summaryrefslogtreecommitdiff
path: root/gtk/theme
diff options
context:
space:
mode:
authorJakub Steiner <jimmac@gmail.com>2020-08-17 13:18:07 +0200
committerJakub Steiner <jimmac@gmail.com>2020-08-20 19:39:18 +0200
commit5f630481db5f9d5f76498a1c490788543bcaff79 (patch)
treed1d99f81323a850ee95cdf65ff9fd66e9e7ea189 /gtk/theme
parent29d7d652c490ceb0cf9d31e92a592f71dcba6902 (diff)
downloadgtk+-5f630481db5f9d5f76498a1c490788543bcaff79.tar.gz
Adwaita: rich-list styling
FIXME: why is the second list in Demo>List Box>Controls taller? https://gitlab.gnome.org/GNOME/gtk/-/issues/3073
Diffstat (limited to 'gtk/theme')
-rw-r--r--gtk/theme/Adwaita/_common.scss21
1 files changed, 19 insertions, 2 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 11e14836df..519a4a89e1 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3072,7 +3072,7 @@ separator {
* Lists *
*********/
listview,
-list, .rich-list {
+list {
color: $text_color;
background-color: $base_color;
border-color: $borders_color;
@@ -3083,7 +3083,7 @@ list, .rich-list {
border-color: $backdrop_borders_color;
}
- > row { padding: 18px; }
+ > row { padding: 2px; }
> row.expander { padding: 0px; }
> row.expander .row-header { padding: 2px; }
@@ -3145,6 +3145,23 @@ row {
background-color: $selected_bg_color;
}
+/*******************************************************
+ * Rich Lists *
+ * Large list usually containing lots of widgets *
+ * https://gitlab.gnome.org/GNOME/gtk/-/issues/3073 *
+ *******************************************************/
+
+
+.rich-list { /* rich lists usually containing other widgets than just labels/text */
+ & > row {
+ padding: 8px 12px;
+ min-height: 32px; /* should be tall even when only containing a label */
+
+ & > box {
+ border-spacing: 12px;
+ }
+ }
+}
/*********************
* App Notifications *