[gtk+/gtk-3-20] Adwaita: make selection on infobars visible



commit 5c763e97c4d6e2191f2088684a4e0be22f9bc9ff
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Mon May 30 13:56:23 2016 +0200

    Adwaita: make selection on infobars visible
    
    see https://bugzilla.gnome.org/show_bug.cgi?id=745622

 gtk/theme/Adwaita/_common.scss           |    2 +-
 gtk/theme/Adwaita/gtk-contained-dark.css |   14 ++++----------
 gtk/theme/Adwaita/gtk-contained.css      |   14 ++++----------
 3 files changed, 9 insertions(+), 21 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 96e22be..b36a2a1 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3879,7 +3879,7 @@ infobar { border-style: none; }
     }
   }
 
-  label:selected { &:focus, &:hover, & { background-color: darken($selected_bg_color, 10%); }}
+  selection { background-color: darken($selected_bg_color, 10%); }
 
   *:link { @extend %link_selected; }
 }
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 2780005..39d2f1f 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -4189,16 +4189,10 @@ infobar {
         .error button:backdrop:disabled label,
         .error button:backdrop:disabled {
           color: #6f91b4; }
-  .info label:selected:focus, .info label:selected:hover, .info label:selected,
-  .question label:selected:focus,
-  .question label:selected:hover,
-  .question label:selected,
-  .warning label:selected:focus,
-  .warning label:selected:hover,
-  .warning label:selected,
-  .error label:selected:focus,
-  .error label:selected:hover,
-  .error label:selected {
+  .info selection,
+  .question selection,
+  .warning selection,
+  .error selection {
     background-color: #184472; }
 
 /************
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 6468a7e..47e1ff9 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -4218,16 +4218,10 @@ infobar {
         .error button:backdrop:disabled label,
         .error button:backdrop:disabled {
           color: #9bc2ea; }
-  .info label:selected:focus, .info label:selected:hover, .info label:selected,
-  .question label:selected:focus,
-  .question label:selected:hover,
-  .question label:selected,
-  .warning label:selected:focus,
-  .warning label:selected:hover,
-  .warning label:selected,
-  .error label:selected:focus,
-  .error label:selected:hover,
-  .error label:selected {
+  .info selection,
+  .question selection,
+  .warning selection,
+  .error selection {
     background-color: #2a76c6; }
 
 /************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]