[gtk+] HighContrast: Actually style tooltips...



commit 3ad7a86961eb56fb44fef03d998b0d0cc97dcb1c
Author: Daniel Boles <dboles src gnome org>
Date:   Thu Oct 5 10:07:17 2017 +0100

    HighContrast: Actually style tooltips...
    
    We need to select on the widget itself too, not just other things with
    the .tooltip class.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769879

 gtk/theme/HighContrast/_common.scss              |    2 ++
 gtk/theme/HighContrast/gtk-contained-inverse.css |    4 ++--
 gtk/theme/HighContrast/gtk-contained.css         |    4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss
index 4b8be0a..6154416 100644
--- a/gtk/theme/HighContrast/_common.scss
+++ b/gtk/theme/HighContrast/_common.scss
@@ -3085,6 +3085,7 @@ infobar {
  * Tooltips *
  ************/
 
+tooltip,
 .tooltip {
   color: white;
   padding: 4px; /* not working */
@@ -3094,6 +3095,7 @@ infobar {
 //  border: 2px solid $borders_color; gnome shell style?
 }
 
+tooltip *,
 .tooltip * { //Yeah this is ugly
   padding: 4px;
   background-color: transparent;
diff --git a/gtk/theme/HighContrast/gtk-contained-inverse.css 
b/gtk/theme/HighContrast/gtk-contained-inverse.css
index 17ce53e..10ba7ab 100644
--- a/gtk/theme/HighContrast/gtk-contained-inverse.css
+++ b/gtk/theme/HighContrast/gtk-contained-inverse.css
@@ -1399,9 +1399,9 @@ infobar { border-width: 0; border-style: none; }
 .info label:selected, .info label:selected:focus, .info label:selected:hover, .question label:selected, 
.question label:selected:focus, .question label:selected:hover, .warning label:selected, .warning 
label:selected:focus, .warning label:selected:hover, .error label:selected, .error label:selected:focus, 
.error label:selected:hover { background-color: white; }
 
 /************ Tooltips * */
-.tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: rgba(0, 0, 0, 
0.8); text-shadow: 0 1px black; }
+tooltip, .tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: 
rgba(0, 0, 0, 0.8); text-shadow: 0 1px black; }
 
-.tooltip * { padding: 4px; background-color: transparent; color: inherit; }
+tooltip *, .tooltip * { padding: 4px; background-color: transparent; color: inherit; }
 
 /***************** Color Chooser * */
 colorswatch { box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), 0 1px #000; }
diff --git a/gtk/theme/HighContrast/gtk-contained.css b/gtk/theme/HighContrast/gtk-contained.css
index ad15af2..365d7b1 100644
--- a/gtk/theme/HighContrast/gtk-contained.css
+++ b/gtk/theme/HighContrast/gtk-contained.css
@@ -1405,9 +1405,9 @@ infobar { border-width: 0; border-style: none; }
 .info label:selected, .info label:selected:focus, .info label:selected:hover, .question label:selected, 
.question label:selected:focus, .question label:selected:hover, .warning label:selected, .warning 
label:selected:focus, .warning label:selected:hover, .error label:selected, .error label:selected:focus, 
.error label:selected:hover { background-color: #333333; }
 
 /************ Tooltips * */
-.tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: rgba(0, 0, 0, 
0.8); text-shadow: 0 1px black; }
+tooltip, .tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: 
rgba(0, 0, 0, 0.8); text-shadow: 0 1px black; }
 
-.tooltip * { padding: 4px; background-color: transparent; color: inherit; }
+tooltip *, .tooltip * { padding: 4px; background-color: transparent; color: inherit; }
 
 /***************** Color Chooser * */
 colorswatch { box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), 0 1px #fff; }


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