[gtk+] tooltip: Remove excessive padding



commit d8f6b12685dec7d9e5389700d79c09b1e68911ca
Author: Timm Bäder <mail baedert org>
Date:   Fri Jan 12 22:31:11 2018 +0100

    tooltip: Remove excessive padding
    
    tooltips support padding now, just like everthing else.

 gtk/theme/Adwaita/_common.scss           |    3 +--
 gtk/theme/Adwaita/gtk-contained-dark.css |    6 +++---
 gtk/theme/Adwaita/gtk-contained.css      |    6 +++---
 3 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index a73a025..f42c09e 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -4051,7 +4051,7 @@ tooltip {
                                               // very dark backgrounds
   }
 
-  padding: 4px; /* not working */
+  padding: 4px;
   border-radius: 5px;
   box-shadow: none; // otherwise it gets inherited by windowframe.csd
   text-shadow: 0 1px black;
@@ -4060,7 +4060,6 @@ tooltip {
   decoration { background-color: transparent; }
 
   * { // Yeah this is ugly
-    padding: 4px;
     background-color: transparent;
     color: white;
   }
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index a62e678..547e382 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -1763,13 +1763,13 @@ infobar.info button:backdrop:disabled label, infobar.info button:backdrop:disabl
 infobar.info selection, infobar.question selection, infobar.warning selection, infobar.error selection { 
background-color: #184472; }
 
 /************ Tooltips * */
-tooltip { padding: 4px; /* not working */ border-radius: 5px; box-shadow: none; text-shadow: 0 1px black; }
+tooltip { padding: 4px; border-radius: 5px; box-shadow: none; text-shadow: 0 1px black; }
 
-tooltip.background { background-color: rgba(0, 0, 0, 0.8); background-clip: padding-box; border: 1px solid 
rgba(255, 255, 255, 0.1); }
+tooltip.background { background-color: white; background-clip: padding-box; border: 1px solid rgba(255, 255, 
255, 0.1); }
 
 tooltip decoration { background-color: transparent; }
 
-tooltip * { padding: 4px; background-color: transparent; color: white; }
+tooltip * { background-color: transparent; color: white; }
 
 /***************** Color Chooser * */
 colorswatch:drop(active), colorswatch { border-style: none; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 32ece88..e4fb55a 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -1783,13 +1783,13 @@ infobar.info button:backdrop:disabled label, infobar.info button:backdrop:disabl
 infobar.info selection, infobar.question selection, infobar.warning selection, infobar.error selection { 
background-color: #2a76c6; }
 
 /************ Tooltips * */
-tooltip { padding: 4px; /* not working */ border-radius: 5px; box-shadow: none; text-shadow: 0 1px black; }
+tooltip { padding: 4px; border-radius: 5px; box-shadow: none; text-shadow: 0 1px black; }
 
-tooltip.background { background-color: rgba(0, 0, 0, 0.8); background-clip: padding-box; border: 1px solid 
rgba(255, 255, 255, 0.1); }
+tooltip.background { background-color: white; background-clip: padding-box; border: 1px solid rgba(255, 255, 
255, 0.1); }
 
 tooltip decoration { background-color: transparent; }
 
-tooltip * { padding: 4px; background-color: transparent; color: white; }
+tooltip * { background-color: transparent; color: white; }
 
 /***************** Color Chooser * */
 colorswatch:drop(active), colorswatch { border-style: none; }


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