Set HighContrast tooltip back to black text over white background
authorJonathan Michalon <dev@michalon.eu>
Thu, 12 Dec 2019 08:51:40 +0000 (09:51 +0100)
committerJonathan Michalon <dev@michalon.eu>
Thu, 12 Dec 2019 08:51:40 +0000 (09:51 +0100)
8abdbfee1642332688f030f53d22b995a21ce814 pulled Adwaita tooltip selectors,
but in the meantime the colors were also set to Adwaita's. Push back the same
behaviour as before because it's better for visually-impaired users.

gtk/theme/HighContrast/_common.scss
gtk/theme/HighContrast/gtk-contained-inverse.css
gtk/theme/HighContrast/gtk-contained.css

index 3975fc2d8bb993ef1db8650b8ae0bc77d6c6a2a4..b0caecbec6886d49ec27713ff57651697536a690 100644 (file)
@@ -3175,9 +3175,9 @@ tooltip {
   &.background {
     // background-color needs to be set this way otherwise it gets drawn twice
     // see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
-    background-color: transparentize(black, 0.1);
+    background-color: $bg_color;
     background-clip: padding-box;
-    border: 1px solid $borders_color;
+    border: 2px solid $fg_color;
   }
 
   padding: 4px; /* not working */
@@ -3190,7 +3190,7 @@ tooltip {
   * { // Yeah this is ugly
     padding: 4px;
     background-color: transparent;
-    color: white;
+    color: $fg_color;
   }
 }
 
index 7f755261c69f3b4a4482eeb21039cba277357977..f9ac7d7c036729ef23cac05c2e144a2c50aeee8f 100644 (file)
@@ -1417,11 +1417,11 @@ infobar { border-width: 0; border-style: none; }
 /************ Tooltips * */
 tooltip { padding: 4px; /* not working */ border-radius: 5px; box-shadow: none; }
 
-tooltip.background { background-color: rgba(0, 0, 0, 0.9); background-clip: padding-box; border: 1px solid gray; }
+tooltip.background { background-color: #000; background-clip: padding-box; border: 2px solid #fff; }
 
 tooltip decoration { background-color: transparent; }
 
-tooltip * { padding: 4px; background-color: transparent; color: white; }
+tooltip * { padding: 4px; background-color: transparent; color: #fff; }
 
 /***************** Color Chooser * */
 colorswatch { box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), 0 1px #000; }
index 9e2fe4092284686c02e6070f8ff1da4a98c5fbf9..30d9304e90301666ef5bc49e581b7a2b7d28aa14 100644 (file)
@@ -1423,11 +1423,11 @@ infobar { border-width: 0; border-style: none; }
 /************ Tooltips * */
 tooltip { padding: 4px; /* not working */ border-radius: 5px; box-shadow: none; }
 
-tooltip.background { background-color: rgba(0, 0, 0, 0.9); background-clip: padding-box; border: 1px solid gray; }
+tooltip.background { background-color: #fff; background-clip: padding-box; border: 2px solid #000; }
 
 tooltip decoration { background-color: transparent; }
 
-tooltip * { padding: 4px; background-color: transparent; color: white; }
+tooltip * { padding: 4px; background-color: transparent; color: #000; }
 
 /***************** Color Chooser * */
 colorswatch { box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), 0 1px #fff; }