[gtk/wip/jimmac/flat-button-tweaks] Adwaita: flat button adjustments




commit 08bab191b732a517b6ef6f01d6c24feb9896bfe8
Author: Jakub Steiner <jimmac gmail com>
Date:   Thu Dec 17 11:19:46 2020 +0100

    Adwaita: flat button adjustments
    
    - normally lighter (on bg_color)
    - darker for headerbar
    
    Finetunes https://gitlab.gnome.org/GNOME/gtk/-/issues/3427

 gtk/theme/Adwaita/_common.scss  | 4 ++--
 gtk/theme/Adwaita/_drawing.scss | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 90b09a635f..92190eb6ba 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1396,9 +1396,9 @@ windowcontrols {
     min-height: 0;
     &:hover {
       //special case hover colors inside a headerbar
-      @include button(undecorated-hover,$c:$headerbar_bg_color);
+      @include button(undecorated-hover,$c:darken($headerbar_bg_color,10%));
     }
-    &:active { @include button(undecorated-active,$c:$headerbar_bg_color); }
+    &:active { @include button(undecorated-active,$c:darken($headerbar_bg_color,10%)); }
   }
 }
 
diff --git a/gtk/theme/Adwaita/_drawing.scss b/gtk/theme/Adwaita/_drawing.scss
index dd45692767..aca1fa8651 100644
--- a/gtk/theme/Adwaita/_drawing.scss
+++ b/gtk/theme/Adwaita/_drawing.scss
@@ -419,7 +419,7 @@
     box-shadow: none;
     text-shadow: none;
     @if $variant == 'light' {
-      background-color: darken($c,26%);
+      background-color: darken($c,14%);
     }
     @else {
       background-color: darken($c,10%);
@@ -431,7 +431,7 @@
     box-shadow: none;
     text-shadow: none;
     @if $variant == 'light' {
-      background-color: darken($c,40%);
+      background-color: darken($c,30%);
     }
     @else {
       background-color: darken($c,14%);


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