From 9f777a7a7ba251bc8d8c99b7a26d65601c5eb8b5 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sat, 14 Aug 2021 13:58:21 +0200 Subject: [Themes] Fix inheritance with state set. Update theme.c and included themes. This should allow you to set `element-text { text-color: inherit; background-color: inherit;}` to fix old themes. --- themes/Adapta-Nokto.rasi | 7 ++++++- themes/Arc-Dark.rasi | 4 ++++ themes/Arc.rasi | 4 ++++ themes/DarkBlue.rasi | 4 ++++ themes/Indego.rasi | 4 ++++ themes/Monokai.rasi | 4 ++++ themes/Paper.rasi | 4 ++++ themes/Pop-Dark.rasi | 4 ++++ themes/android_notification.rasi | 4 ++++ themes/arthur.rasi | 4 ++++ themes/blue.rasi | 4 ++++ themes/c64.rasi | 4 ++++ themes/fancy.rasi | 4 ++++ themes/glue_pro_blue.rasi | 4 ++++ themes/gruvbox-common.rasi | 4 ++++ themes/lb.rasi | 4 ++++ themes/paper-float.rasi | 4 ++++ themes/purple.rasi | 4 ++++ themes/sidebar.rasi | 4 ++++ themes/solarized.rasi | 4 ++++ themes/solarized_alternate.rasi | 4 ++++ 21 files changed, 86 insertions(+), 1 deletion(-) (limited to 'themes') diff --git a/themes/Adapta-Nokto.rasi b/themes/Adapta-Nokto.rasi index 7e063699..442f3cd3 100644 --- a/themes/Adapta-Nokto.rasi +++ b/themes/Adapta-Nokto.rasi @@ -65,7 +65,12 @@ element { border: 0; padding: 1px ; } -element.normal.normal { +element-text { + background-color: inherit; + text-color: inherit; +} + +element normal.normal { background-color: @normal-background; text-color: @normal-foreground; } diff --git a/themes/Arc-Dark.rasi b/themes/Arc-Dark.rasi index 56e7de74..de23dfc3 100644 --- a/themes/Arc-Dark.rasi +++ b/themes/Arc-Dark.rasi @@ -63,6 +63,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/Arc.rasi b/themes/Arc.rasi index 9eaa18f5..04309598 100644 --- a/themes/Arc.rasi +++ b/themes/Arc.rasi @@ -64,6 +64,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/DarkBlue.rasi b/themes/DarkBlue.rasi index 9065c09c..6be7ddd2 100644 --- a/themes/DarkBlue.rasi +++ b/themes/DarkBlue.rasi @@ -64,6 +64,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/Indego.rasi b/themes/Indego.rasi index 3242a335..8e188a23 100644 --- a/themes/Indego.rasi +++ b/themes/Indego.rasi @@ -64,6 +64,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/Monokai.rasi b/themes/Monokai.rasi index bc3a3dab..613d4d02 100644 --- a/themes/Monokai.rasi +++ b/themes/Monokai.rasi @@ -64,6 +64,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/Paper.rasi b/themes/Paper.rasi index 03233e34..67a98b1a 100644 --- a/themes/Paper.rasi +++ b/themes/Paper.rasi @@ -64,6 +64,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/Pop-Dark.rasi b/themes/Pop-Dark.rasi index 54b0f93c..352107ce 100644 --- a/themes/Pop-Dark.rasi +++ b/themes/Pop-Dark.rasi @@ -60,6 +60,10 @@ listview { element { border: 0; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { text-color: @normal-foreground; background-color: @normal-background; diff --git a/themes/android_notification.rasi b/themes/android_notification.rasi index 85a02083..6bbd8bb9 100644 --- a/themes/android_notification.rasi +++ b/themes/android_notification.rasi @@ -64,6 +64,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/arthur.rasi b/themes/arthur.rasi index e9f982b8..437778a7 100644 --- a/themes/arthur.rasi +++ b/themes/arthur.rasi @@ -111,6 +111,10 @@ element { color: @foreground; font:inherit; } +element-text { + background-color: inherit; + text-color: inherit; +} element selected.normal { background-color: @blue; } diff --git a/themes/blue.rasi b/themes/blue.rasi index 185a287f..540d1b0b 100644 --- a/themes/blue.rasi +++ b/themes/blue.rasi @@ -64,6 +64,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/c64.rasi b/themes/c64.rasi index dc970d44..b796b236 100644 --- a/themes/c64.rasi +++ b/themes/c64.rasi @@ -67,6 +67,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/fancy.rasi b/themes/fancy.rasi index 1f6e9df8..050ca581 100644 --- a/themes/fancy.rasi +++ b/themes/fancy.rasi @@ -148,6 +148,10 @@ element { border-color: transparent; padding: 4px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/glue_pro_blue.rasi b/themes/glue_pro_blue.rasi index d50c5f60..42f8631b 100644 --- a/themes/glue_pro_blue.rasi +++ b/themes/glue_pro_blue.rasi @@ -63,6 +63,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/gruvbox-common.rasi b/themes/gruvbox-common.rasi index f9c73171..36bd0cbd 100644 --- a/themes/gruvbox-common.rasi +++ b/themes/gruvbox-common.rasi @@ -125,3 +125,7 @@ textbox-prompt-sep { text-color: @normal-foreground; margin: 0 0.3em 0 0; } +element-text { + background-color: inherit; + text-color: inherit; +} diff --git a/themes/lb.rasi b/themes/lb.rasi index 9f2c47e8..fb7ef0a6 100644 --- a/themes/lb.rasi +++ b/themes/lb.rasi @@ -64,6 +64,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/paper-float.rasi b/themes/paper-float.rasi index 33df6bfb..fbf38f3f 100644 --- a/themes/paper-float.rasi +++ b/themes/paper-float.rasi @@ -55,6 +55,10 @@ element { padding: 2px; highlight: bold ; } +element-text { + background-color: inherit; + text-color: inherit; +} element normal.normal { text-color: #002B36FF; background-color: #F5F5F500; diff --git a/themes/purple.rasi b/themes/purple.rasi index 1819cd70..1c414276 100644 --- a/themes/purple.rasi +++ b/themes/purple.rasi @@ -63,6 +63,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/sidebar.rasi b/themes/sidebar.rasi index e9cd3d1f..69cd0a81 100644 --- a/themes/sidebar.rasi +++ b/themes/sidebar.rasi @@ -76,6 +76,10 @@ listview { dynamic: false; lines: 0; } +element-text { + background-color: inherit; + text-color: inherit; +} element selected normal { background-color: @blue; } diff --git a/themes/solarized.rasi b/themes/solarized.rasi index dae7b9af..9107fa90 100644 --- a/themes/solarized.rasi +++ b/themes/solarized.rasi @@ -63,6 +63,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; diff --git a/themes/solarized_alternate.rasi b/themes/solarized_alternate.rasi index 81a41ef1..77154fca 100644 --- a/themes/solarized_alternate.rasi +++ b/themes/solarized_alternate.rasi @@ -63,6 +63,10 @@ element { border: 0; padding: 1px ; } +element-text { + background-color: inherit; + text-color: inherit; +} element.normal.normal { background-color: @normal-background; text-color: @normal-foreground; -- cgit v1.2.3