[gtk/wip/jimmac/error-labels-insensitive-gtk3] Adwaita: error labels insensitive & backdrop states




commit 629431ba0e8ae5da31b014a073102bcdce5812b0
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..d5de9f8d8e 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: $insensitive_fg_color; }
+    &: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..46bae25651 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: #919190; }
+
+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..a5765e8d36 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: #929595; }
+
+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]