[gtk/wip/jimmac/error-entries-and-labels-gtk3] Adwaita: error labels and entries
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/error-entries-and-labels-gtk3] Adwaita: error labels and entries
- Date: Fri, 14 Aug 2020 12:18:23 +0000 (UTC)
commit 22af449b464b67fe0a4b76f3143ada104c441d30
Author: Jakub Steiner <jimmac gmail com>
Date: Thu Aug 13 10:33:06 2020 +0200
Adwaita: error labels and entries
See https://gitlab.gnome.org/GNOME/gtk/-/issues/3063
gtk/theme/Adwaita/_common.scss | 4 ++++
gtk/theme/Adwaita/gtk-contained-dark.css | 4 ++++
gtk/theme/Adwaita/gtk-contained.css | 4 ++++
3 files changed, 12 insertions(+)
---
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; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]