[gnome-shell/wip/snwh/theme-refactor] theme: fix HC after refactoring



commit 3d8cdafb9fa0e95dd45131525ce833cae13fb451
Author: Jakub Steiner <jimmac gmail com>
Date:   Wed Jan 8 11:08:14 2020 +0100

    theme: fix HC after refactoring
    
    - panel fg color was derived from bg color. Not a good idea as it's not
      just light/drk, but HC as well.
    - deriving from dark theme means contrast for things like popover items
      is better.

 data/theme/gnome-shell-high-contrast.scss       | 2 +-
 data/theme/gnome-shell-sass/widgets/_panel.scss | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/theme/gnome-shell-high-contrast.scss b/data/theme/gnome-shell-high-contrast.scss
index 23a55eb865..ed52bbb86c 100644
--- a/data/theme/gnome-shell-high-contrast.scss
+++ b/data/theme/gnome-shell-high-contrast.scss
@@ -1,4 +1,4 @@
-$variant: 'light';
+$variant: 'dark';
 
 @import "gnome-shell-sass/_high-contrast-colors"; //use gtk colors
 @import "gnome-shell-sass/_drawing";
diff --git a/data/theme/gnome-shell-sass/widgets/_panel.scss b/data/theme/gnome-shell-sass/widgets/_panel.scss
index ba8e6675cc..298877f236 100644
--- a/data/theme/gnome-shell-sass/widgets/_panel.scss
+++ b/data/theme/gnome-shell-sass/widgets/_panel.scss
@@ -3,7 +3,7 @@
 
 $panel_corner_radius: $base_border_radius+1;
 $panel_bg_color: if($variant == 'light', rgba(0,0,0,0.9), #000);
-$panel_fg_color: if($variant == 'light', darken($bg_color, 15%), darken($fg_color, 10%));
+$panel_fg_color: if($variant == 'light', darken($fg_color, 15%), darken($fg_color, 10%));
 $panel_height: 1.86em;
 
 
@@ -103,4 +103,4 @@ $panel_height: 1.86em;
 #appMenu {
   spacing: $base_spacing;
   .label-shadow { color: transparent; }
-}
\ No newline at end of file
+}


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