[gtk/wip/jimmac/error-labels-insensitive-gtk3] Adwaita: error labels insensitive & backdrop states
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/error-labels-insensitive-gtk3] Adwaita: error labels insensitive & backdrop states
- Date: Mon, 17 Aug 2020 10:43:00 +0000 (UTC)
commit 9a9e559e457c78dc8851a37522b6a10fb6c778c6
Author: Jakub Steiner <jimmac gmail com>
Date: Mon Aug 17 09:57:31 2020 +0200
Adwaita: error labels insensitive & backdrop states
- address colored labels for the two states
See https://gitlab.gnome.org/GNOME/gtk/-/issues/3063#note_891618
gtk/theme/Adwaita/_common.scss | 6 +++++-
gtk/theme/Adwaita/gtk-contained-dark.css | 4 ++++
gtk/theme/Adwaita/gtk-contained.css | 4 ++++
3 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 1a4ddbbd60..8790b9494d 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -206,7 +206,11 @@ label {
selection { @extend %selected_items_backdrop; }
}
- &.error { color: $error_color; }
+ &.error {
+ color: $error_color;
+ &:disabled { color: transparentize($error_color,0.5); }
+ &:disabled:backdrop { color: $backdrop_insensitive_color; }
+ }
}
.dim-label {
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index c234ba3b99..e5b4570777 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -59,6 +59,10 @@ button label:disabled:backdrop { color: inherit; }
label.error { color: #cc0000; }
+label.error:disabled { color: rgba(204, 0, 0, 0.5); }
+
+label.error:disabled:backdrop { color: #5b5b5b; }
+
.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; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index b29323e2de..f391f37293 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -59,6 +59,10 @@ button label:disabled:backdrop { color: inherit; }
label.error { color: #cc0000; }
+label.error:disabled { color: rgba(204, 0, 0, 0.5); }
+
+label.error:disabled:backdrop { color: #d4cfca; }
+
.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; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]