[gtk/wip/jimmac/adwaita-3-32: 66/67] Adwaita: headerbar togglebuttons backdrop



commit 6ff9e5ab7dc1330be2bfd14092aede3371b55081
Author: Jakub Steiner <jimmac gmail com>
Date:   Wed Jan 16 12:49:47 2019 +0100

    Adwaita: headerbar togglebuttons backdrop
    
    - redefine overriden backdrop state

 gtk/theme/Adwaita/_common.scss           | 3 +++
 gtk/theme/Adwaita/gtk-contained-dark.css | 4 ++++
 gtk/theme/Adwaita/gtk-contained.css      | 4 ++++
 3 files changed, 11 insertions(+)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index b76591d51a..53a58e530c 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1674,6 +1674,9 @@ headerbar {
     /* darken switchbuttons for headerbars. issue #1588 */
     background: if($variant == 'light', image(darken($bg_color, 17%)), image(darken($bg_color, 9%)));
     border-top-color: darken($borders_color, 7%);
+    &:backdrop {
+      @include button(backdrop-active);
+    }
   }
   
   separator.titlebutton { opacity: 0; } /* hide the close button separator */
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 3d50e19251..6c5ad5713f 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -666,6 +666,10 @@ searchbar > revealer > box { margin: -6px; padding: 6px; }
 
 .titlebar:not(headerbar) stackswitcher button:checked, .titlebar:not(headerbar) button.toggle:checked, 
headerbar stackswitcher button:checked, headerbar button.toggle:checked { /* darken switchbuttons for 
headerbars. issue #1588 */ background: image(#282828); border-top-color: #141314; }
 
+.titlebar:not(headerbar) stackswitcher button:checked:backdrop, .titlebar:not(headerbar) 
button.toggle:checked:backdrop, headerbar stackswitcher button:checked:backdrop, headerbar 
button.toggle:checked:backdrop { border-color: #2a2a2b; background-image: image(#323233); box-shadow: inset 0 
1px rgba(255, 255, 255, 0); }
+
+.titlebar:not(headerbar) stackswitcher button:checked:backdrop label, .titlebar:not(headerbar) stackswitcher 
button:checked:backdrop, .titlebar:not(headerbar) button.toggle:checked:backdrop label, 
.titlebar:not(headerbar) button.toggle:checked:backdrop, headerbar stackswitcher button:checked:backdrop 
label, headerbar stackswitcher button:checked:backdrop, headerbar button.toggle:checked:backdrop label, 
headerbar button.toggle:checked:backdrop { color: #969696; }
+
 .titlebar:not(headerbar) separator.titlebutton, headerbar separator.titlebutton { opacity: 0; }
 
 .solid-csd .titlebar:backdrop:dir(rtl):not(headerbar), .solid-csd 
.titlebar:backdrop:dir(ltr):not(headerbar), .solid-csd .titlebar:dir(rtl):not(headerbar), .solid-csd 
.titlebar:dir(ltr):not(headerbar), .solid-csd headerbar:backdrop:dir(rtl), .solid-csd 
headerbar:backdrop:dir(ltr), .solid-csd headerbar:dir(rtl), .solid-csd headerbar:dir(ltr) { margin-left: 
-1px; margin-right: -1px; margin-top: -1px; border-radius: 0; box-shadow: none; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 11ae36172f..52444b2eae 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -674,6 +674,10 @@ searchbar > revealer > box { margin: -6px; padding: 6px; }
 
 .titlebar:not(headerbar) stackswitcher button:checked, .titlebar:not(headerbar) button.toggle:checked, 
headerbar stackswitcher button:checked, headerbar button.toggle:checked { /* darken switchbuttons for 
headerbars. issue #1588 */ background: image(#cfcac4); border-top-color: #bdb5ae; }
 
+.titlebar:not(headerbar) stackswitcher button:checked:backdrop, .titlebar:not(headerbar) 
button.toggle:checked:backdrop, headerbar stackswitcher button:checked:backdrop, headerbar 
button.toggle:checked:backdrop { border-color: #d5d0cc; background-image: image(#e4e4e0); box-shadow: inset 0 
1px rgba(255, 255, 255, 0); }
+
+.titlebar:not(headerbar) stackswitcher button:checked:backdrop label, .titlebar:not(headerbar) stackswitcher 
button:checked:backdrop, .titlebar:not(headerbar) button.toggle:checked:backdrop label, 
.titlebar:not(headerbar) button.toggle:checked:backdrop, headerbar stackswitcher button:checked:backdrop 
label, headerbar stackswitcher button:checked:backdrop, headerbar button.toggle:checked:backdrop label, 
headerbar button.toggle:checked:backdrop { color: #929595; }
+
 .titlebar:not(headerbar) separator.titlebutton, headerbar separator.titlebutton { opacity: 0; }
 
 .solid-csd .titlebar:backdrop:dir(rtl):not(headerbar), .solid-csd 
.titlebar:backdrop:dir(ltr):not(headerbar), .solid-csd .titlebar:dir(rtl):not(headerbar), .solid-csd 
.titlebar:dir(ltr):not(headerbar), .solid-csd headerbar:backdrop:dir(rtl), .solid-csd 
headerbar:backdrop:dir(ltr), .solid-csd headerbar:dir(rtl), .solid-csd headerbar:dir(ltr) { margin-left: 
-1px; margin-right: -1px; margin-top: -1px; border-radius: 0; box-shadow: none; }


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