Skip to content

Commit

Permalink
Fix backdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jan 24, 2024
1 parent d26204f commit 87ea291
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Helium/gtk-4.0/_defaults.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
@define-color headerbar_bg_color #{"" + if($variant == 'light', #FFFFFF, #000000)};
@define-color headerbar_fg_color #{"" + if($variant == 'light', #000000, #FFFFFF)};
@define-color headerbar_border_color #{"" + if($variant == 'light', #000000, #FFFFFF)};
@define-color headerbar_backdrop_color #{"" + gtkshade(#FFFFFF, 0.95)};
@define-color headerbar_backdrop_color #{"" + if($variant == 'light', #FAFAFA, #1d1d1d)};
@define-color headerbar_shade_color #{if($variant == 'light', gtkalpha(#000000, 0.38), gtkalpha(#000000, 0.38))};

// Cards
Expand Down
3 changes: 2 additions & 1 deletion Helium/gtk-4.0/widgets/_header-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ headerbar {

&:backdrop {
background: $headerbar_backdrop_color;
color: gtkalpha($view_fg_color, 0.66);

transition: $backdrop_transition;

> windowhandle {
background: gtkalpha($view_fg_color, 0.12);
color: gtkalpha($view_fg_color, 0.38);
color: gtkalpha($view_fg_color, 0.66);

transition: $backdrop_transition;
}
Expand Down
2 changes: 0 additions & 2 deletions Helium/gtk-4.0/widgets/_window.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ window {
border-width: 0px;

&.csd {
background: bg-color(1);
box-shadow: shadow(5),
0 0 0 1px rgba(black, 0.1);
margin: 0px;
Expand All @@ -12,7 +11,6 @@ window {
outline-offset: -1px;

&:backdrop {
background: bg-color(0);
// The first transparent is to avoid jumping
box-shadow: 0 6px 30px 5px transparent,
shadow(3),
Expand Down

0 comments on commit 87ea291

Please sign in to comment.