From a023c01ae8adcada16fbf5aac65c480412251248 Mon Sep 17 00:00:00 2001 From: alfrix Date: Sun, 25 Feb 2024 13:48:15 -0300 Subject: [PATCH] layout and style changes for comboboxes make comboboxes arrows dissappear when not active correct the color of the combo make the items bigger for easier selection --- styles/base.css | 9 +++++++++ styles/colorized/style.css | 18 +++++++----------- styles/material-dark/style.css | 16 +++++----------- styles/material-darker/style.css | 18 ++++++------------ styles/z-bolt/style.css | 1 + 5 files changed, 28 insertions(+), 34 deletions(-) diff --git a/styles/base.css b/styles/base.css index 8ad0c0a8..39c701a2 100644 --- a/styles/base.css +++ b/styles/base.css @@ -155,6 +155,15 @@ combobox box button { combobox arrow { min-width: 1em; + background-color: @bg; +} + +combobox arrow:disabled { +-gtk-icon-source: None; +} + +combobox cellview { + padding: 0.5em; } entry { diff --git a/styles/colorized/style.css b/styles/colorized/style.css index a5b222d1..39ee03ad 100644 --- a/styles/colorized/style.css +++ b/styles/colorized/style.css @@ -97,7 +97,13 @@ button.invalid { border-radius: .75em; } -combobox box button { +menu, +menuitem, +combobox button, +combobox arrow, +combobox menuitem, +popover, +popover button { background-color: @solarized-base02; border-color: @solarized-base03; } @@ -121,16 +127,6 @@ label { color: @solarized-base3; } -menu { - background-color: @solarized-base03; - border-color: @solarized-base1; -} - -menuitem { - background-color: @solarized-base03; - border-color: @solarized-base1 -} - trough { background-color: @solarized-base02; color: @solarized-base3; diff --git a/styles/material-dark/style.css b/styles/material-dark/style.css index 667cad5b..22cb52c2 100644 --- a/styles/material-dark/style.css +++ b/styles/material-dark/style.css @@ -83,7 +83,11 @@ button.invalid { border-bottom-color: @error; } -combobox box button { +menu, +menuitem, +combobox button, +combobox arrow, +combobox menuitem { background-color: @active-dark; border-color: @bg; } @@ -107,16 +111,6 @@ label { color: @text; } -menu { - background-color: @bg; - border-color: @lines; -} - -menuitem { - background-color: @bg; - border-color: @lines; -} - trough { background-color: @active-dark; color: @text; diff --git a/styles/material-darker/style.css b/styles/material-darker/style.css index c6c9af08..0aa3d243 100644 --- a/styles/material-darker/style.css +++ b/styles/material-darker/style.css @@ -80,8 +80,12 @@ button.invalid { border-width: .1em; } -combobox box button { - background-color: #121212; +menu, +menuitem, +combobox button, +combobox arrow, +combobox menuitem { + background-color: #252525; border-color: #121212; } @@ -99,16 +103,6 @@ label { color: #e2e2e2; } -menu { - background-color: #121212; - border-color: #a2a2a2; -} - -menuitem { - background-color: #121212; - border-color: #282828; -} - trough { background-color: #121212; color: #e2e2e2; diff --git a/styles/z-bolt/style.css b/styles/z-bolt/style.css index 042d19e2..e967f95d 100644 --- a/styles/z-bolt/style.css +++ b/styles/z-bolt/style.css @@ -19,6 +19,7 @@ list row, treeview.view, +combobox arrow, window { background-color: @bg; }