Skip to content

Commit

Permalink
Bring light theme headerbar closer to libadwaita 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lassekongo83 committed Oct 4, 2023
1 parent cad5574 commit abae0d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions gtk/src/adw-gtk3/gtk-3.0/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@

// headerbar stuff
headerbar, .titlebar {
box-shadow: 0 1px if($variant == 'light', gtkalpha($headerbar_shade_color, .3), gtkalpha($headerbar_shade_color, .1));

// Text colors for gtk named color support (except backdrop and disabled)
&:not(.selection-mode) {
Expand Down
4 changes: 2 additions & 2 deletions gtk/src/adw-gtk3/gtk-3.0/_defaults.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
@define-color view_fg_color #{if($variant == 'light', #333333, white)};

// Header bar, search bar, tab bar
@define-color headerbar_bg_color #{if($variant == 'light', #ebebeb, #303030)};
@define-color headerbar_bg_color #{if($variant == 'light', #ffffff, #303030)};
@define-color headerbar_fg_color #{if($variant == 'light', #2f2f2f, white)}; // adw-gtk3 light theme note: replacing transparentize(black, .2) with equal static color
@define-color headerbar_border_color #{if($variant == 'light', transparentize(black, .2), white)};
@define-color headerbar_backdrop_color @window_bg_color;
@define-color headerbar_shade_color #{if($variant == 'light', transparentize(black, .93), transparentize(black, .64))};
@define-color headerbar_shade_color #{if($variant == 'light', transparentize(black, .88), transparentize(black, .64))};
@define-color headerbar_darker_shade_color #{if($variant == 'light', transparentize(black, .88), transparentize(black, .1))};

// Split pane views
Expand Down

0 comments on commit abae0d3

Please sign in to comment.