summaryrefslogtreecommitdiff
path: root/desktop-themes
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2026-05-15 09:04:52 -0400
committerVictor Kareh <[email protected]>2026-05-15 09:05:39 -0400
commita44267fbae0944cfce63a8c002452d64963113fc (patch)
treec95d66de9ab20889e2cb5510a094fda1a8f6f8e6 /desktop-themes
parentaa7d85e6c52e6881683b76951e08ccfa5f181196 (diff)
downloadmate-themes-fix-error-entry-text-visibility.tar.bz2
mate-themes-fix-error-entry-text-visibility.tar.xz
Traditional themes: fix invisible text in error/warning entry fieldsfix-error-entry-text-visibility
The entry widget uses a background-image gradient for an inner border effect, which renders on top of background-color. When GTK applies the .error class (e.g., search text not found), the text color changes to white but the light gradient remains, making text invisible. This clears the background-image for entry widgets in info/warning/question/error states so the state background color shows through. Fixes #331
Diffstat (limited to 'desktop-themes')
-rw-r--r--desktop-themes/TraditionalGreen/gtk-3.0/gtk-widgets.css11
-rw-r--r--desktop-themes/TraditionalOk/gtk-3.0/gtk-widgets.css11
2 files changed, 22 insertions, 0 deletions
diff --git a/desktop-themes/TraditionalGreen/gtk-3.0/gtk-widgets.css b/desktop-themes/TraditionalGreen/gtk-3.0/gtk-widgets.css
index 8f167499..61afa363 100644
--- a/desktop-themes/TraditionalGreen/gtk-3.0/gtk-widgets.css
+++ b/desktop-themes/TraditionalGreen/gtk-3.0/gtk-widgets.css
@@ -3831,6 +3831,17 @@ entry.error:focus,
border-width: 1px;
}
+entry.info,
+entry.info:focus,
+entry.warning,
+entry.warning:focus,
+entry.question,
+entry.question:focus,
+entry.error,
+entry.error:focus {
+ background-image: none;
+}
+
infobar,
.info,
.warning,
diff --git a/desktop-themes/TraditionalOk/gtk-3.0/gtk-widgets.css b/desktop-themes/TraditionalOk/gtk-3.0/gtk-widgets.css
index f7025c6c..2e7d29b6 100644
--- a/desktop-themes/TraditionalOk/gtk-3.0/gtk-widgets.css
+++ b/desktop-themes/TraditionalOk/gtk-3.0/gtk-widgets.css
@@ -3833,6 +3833,17 @@ entry.error:focus,
border-width: 1px;
}
+entry.info,
+entry.info:focus,
+entry.warning,
+entry.warning:focus,
+entry.question,
+entry.question:focus,
+entry.error,
+entry.error:focus {
+ background-image: none;
+}
+
infobar,
.info,
.warning,