From f66d84deecd59d4f2d393bb450dd360fad2cf140 Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Fri, 5 Sep 2014 16:17:00 +0200 Subject: [PATCH] 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(+) diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss index 032a292104..c1bd858ddf 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 b3a73f36e0..9e4d4f4fa8 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 62d414a87c..f5f8a455ab 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 * {