summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorJakub Steiner <jimmac@gmail.com>2020-08-13 10:33:06 +0200
committerJakub Steiner <jimmac@gmail.com>2020-08-14 14:17:59 +0200
commit22af449b464b67fe0a4b76f3143ada104c441d30 (patch)
treebd28dd8fb62f23dabcbfc7f697ceda04d891bd61 /gtk
parent007243c15160459e0c4859d70f61176f0a438ab1 (diff)
downloadgtk+-22af449b464b67fe0a4b76f3143ada104c441d30.tar.gz
Adwaita: error labels and entries
See https://gitlab.gnome.org/GNOME/gtk/-/issues/3063
Diffstat (limited to 'gtk')
-rw-r--r--gtk/theme/Adwaita/_common.scss4
-rw-r--r--gtk/theme/Adwaita/gtk-contained-dark.css4
-rw-r--r--gtk/theme/Adwaita/gtk-contained.css4
3 files changed, 12 insertions, 0 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 659bac7d55..1a4ddbbd60 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -205,6 +205,8 @@ label {
&:backdrop {
selection { @extend %selected_items_backdrop; }
}
+
+ &.error { color: $error_color; }
}
.dim-label {
@@ -473,6 +475,8 @@ entry {
+ combobox > box > button.combo { border-top-color: $drop_target_color; }
}
}
+
+ &.error { color: $error_color; }
}
treeview entry {
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 41ec427393..c234ba3b99 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -57,6 +57,8 @@ label:disabled:backdrop { color: #5b5b5b; }
button label:disabled:backdrop { color: inherit; }
+label.error { color: #cc0000; }
+
.dim-label, .titlebar:not(headerbar) .subtitle, headerbar .subtitle, label.separator { opacity: 0.55; text-shadow: none; }
assistant .sidebar { background-color: #2d2d2d; border-top: 1px solid #1b1b1b; }
@@ -178,6 +180,8 @@ spinbutton:not(.vertical) progress:backdrop, entry progress:backdrop { backgroun
.linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + spinbutton:not(.vertical), .linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + entry, .linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + button, .linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + combobox > box > button.combo, .linked.vertical > entry:drop(active):not(:only-child) + spinbutton:not(.vertical), .linked.vertical > entry:drop(active):not(:only-child) + entry, .linked.vertical > entry:drop(active):not(:only-child) + button, .linked.vertical > entry:drop(active):not(:only-child) + combobox > box > button.combo { border-top-color: #4e9a06; }
+spinbutton.error:not(.vertical), entry.error { color: #cc0000; }
+
treeview entry:focus:dir(rtl), treeview entry:focus:dir(ltr) { background-color: #2d2d2d; transition-property: color, background; }
treeview entry.flat, treeview entry { border-radius: 0; background-image: none; background-color: #2d2d2d; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 92705e082b..b29323e2de 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -57,6 +57,8 @@ label:disabled:backdrop { color: #d4cfca; }
button label:disabled:backdrop { color: inherit; }
+label.error { color: #cc0000; }
+
.dim-label, .titlebar:not(headerbar) .subtitle, headerbar .subtitle, label.separator { opacity: 0.55; text-shadow: none; }
assistant .sidebar { background-color: #ffffff; border-top: 1px solid #cdc7c2; }
@@ -178,6 +180,8 @@ spinbutton:not(.vertical) progress:backdrop, entry progress:backdrop { backgroun
.linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + spinbutton:not(.vertical), .linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + entry, .linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + button, .linked.vertical > spinbutton:drop(active):not(:only-child):not(.vertical) + combobox > box > button.combo, .linked.vertical > entry:drop(active):not(:only-child) + spinbutton:not(.vertical), .linked.vertical > entry:drop(active):not(:only-child) + entry, .linked.vertical > entry:drop(active):not(:only-child) + button, .linked.vertical > entry:drop(active):not(:only-child) + combobox > box > button.combo { border-top-color: #4e9a06; }
+spinbutton.error:not(.vertical), entry.error { color: #cc0000; }
+
treeview entry:focus:dir(rtl), treeview entry:focus:dir(ltr) { background-color: #ffffff; transition-property: color, background; }
treeview entry.flat, treeview entry { border-radius: 0; background-image: none; background-color: #ffffff; }