[gtk+] Adwaita: tooltip fixes



commit f66d84deecd59d4f2d393bb450dd360fad2cf140
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Fri Sep 5 16:17:00 2014 +0200

    Adwaita: tooltip fixes
    
    The "too dark" background was caused by box-shadow inherited by
    window-frame.csd, so box-shadow: none and the right background
    color on tooltip selector.

 gtk/resources/theme/Adwaita/_common.scss           |    2 ++
 gtk/resources/theme/Adwaita/gtk-contained-dark.css |    1 +
 gtk/resources/theme/Adwaita/gtk-contained.css      |    1 +
 3 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 032a292..c1bd858 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -2574,7 +2574,9 @@ GtkInfoBar {
   background-color: transparentize(black, 0.5); // FIXME: I think this is not
                                                 //        what I get, it looks
                                                 //        more solid.
+  box-shadow: none; // otherwise it gets inherited by windowframe.csd
   text-shadow: 0 1px black;
+  // FIXME: we need a border or tooltips vanish on black background.
 }
 
 .tooltip * { //Yeah this is ugly
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css 
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index b3a73f3..9e4d4f4 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -3969,6 +3969,7 @@ GtkInfoBar {
   /* not working */
   border-radius: 5px;
   background-color: rgba(0, 0, 0, 0.5);
+  box-shadow: none;
   text-shadow: 0 1px black; }
 
 .tooltip * {
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index 62d414a..f5f8a45 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -4116,6 +4116,7 @@ GtkInfoBar {
   /* not working */
   border-radius: 5px;
   background-color: rgba(0, 0, 0, 0.5);
+  box-shadow: none;
   text-shadow: 0 1px black; }
 
 .tooltip * {


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