From 62d5d59d6ef120d2e8f7f231466443f2f68c47ca Mon Sep 17 00:00:00 2001 From: Marc Date: Tue, 8 Sep 2020 09:00:15 +0200 Subject: [PATCH] gtk colors now inherited --- .config/gtk-3.0/shared.css | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/.config/gtk-3.0/shared.css b/.config/gtk-3.0/shared.css index 6356b84..2574cdf 100644 --- a/.config/gtk-3.0/shared.css +++ b/.config/gtk-3.0/shared.css @@ -3,18 +3,38 @@ * https://ubuntu-mate.community/t/enabling-the-gtk-inspector-to-find-css-values-for-theme-styles/20150 */ +/************* + * base states + *************/ + +.background { + color: @fg_color; + background: @bg_color; +} + +/* inherit colors from parent */ +* { + background-color: inherit; + color: inherit; +} + +selection, +*:selected:selected, +*:selected:focus { + background-color: @acc1_color; + color: @bg_color; +} + + +/* * { border-color: @bg_color; border-style: solid; -GtkTreeView-expander-size: 11; } -/* -viewport { - background: @bg_color; - color: @fg_color; -} */ + selection, *:selected:selected, *:selected:focus { @@ -38,11 +58,6 @@ label { -gtk-icon-effect: dim; } -.background { - color: @fg_color; - background: @bg_color; -} - .view, .cell { background: @bg_color;