Skip to content

Commit

Permalink
Even more Elevation fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jul 30, 2024
1 parent 1e7ea51 commit 4725a8b
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 30 deletions.
7 changes: 2 additions & 5 deletions Helium/gtk-4.0/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,12 @@
@return image($view_bg_color);
// Elevation 1
} @else if $level == 1 {
@return image($surface_bg_color);
@return image($surface_container_bg_color);
// Elevation 2
} @else if $level == 2 {
@return image($surface_container_bg_color);
@return image($surface_container_high_bg_color);
// Elevation 3
} @else if $level == 3 {
@return image($surface_container_high_bg_color);
// Elevation 4
} @else if $level == 4 {
@return image($surface_container_highest_bg_color);
} @else {
@return image($view_bg_color);
Expand Down
28 changes: 14 additions & 14 deletions Helium/gtk-4.0/_tauos.scss
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ $colors: (
}

&:active {
background: bg-color(4);
background: bg-color(3);
color: $accent_color;
box-shadow: shadow(2);
}
Expand Down Expand Up @@ -870,7 +870,7 @@ $colors: (
}

row:selected:hover & {
background: bg-color(4);
background: bg-color(3);
color: $accent_color;
}
}
Expand Down Expand Up @@ -914,7 +914,7 @@ $colors: (
}

row:selected:hover & {
background: bg-color(4);
background: bg-color(3);
color: $accent_color;
}
}
Expand All @@ -930,22 +930,22 @@ $colors: (
}
&:checked {
box-shadow: none;
background: bg-color(3);
background: bg-color(2);
color: $view_fg_color;
}
&:hover {
background: bg-color(2);
background: bg-color(1);
box-shadow: shadow(1), inset 0 0 0 1px gtkalpha($borders, .38);
color: $view_fg_color;
}
&:hover:checked {
background: bg-color(3);
background: bg-color(2);
box-shadow: shadow(1), inset 0 0 0 1px gtkalpha($borders, .38);
color: $view_fg_color;
}
&:active {
box-shadow: none;
background: bg-color(4);
background: bg-color(3);
color: $view_fg_color;
}
}
Expand Down Expand Up @@ -1338,13 +1338,13 @@ $colors: (
}

& .appbar {
background: bg-color(3);
background: bg-color(2);

.disclosure-button {
background: bg-color(4);
background:bg-color(3);

&.toggle {
background: bg-color(4);
background: bg-color(3);
border-radius: px-to-rem(9999px);

&:hover {
Expand Down Expand Up @@ -1375,7 +1375,7 @@ $colors: (
}

& button {
background: bg-color(4);
background: bg-color(3);
border-radius: px-to-rem(9999px);

&:hover {
Expand Down Expand Up @@ -1425,16 +1425,16 @@ $colors: (
box-shadow: none;

& button:hover {
background: bg-color(2);
background: bg-color(1);
color: $view_fg_color;
box-shadow: inset 0 0 0 1px gtkalpha($borders, .38);
}
& button:checked {
background: bg-color(3);
background: bg-color(2);
color: $view_fg_color;
}
& button:hover:checked {
background: bg-color(4);
background: bg-color(3);
color: $view_fg_color;
}
}
Expand Down
8 changes: 4 additions & 4 deletions Helium/gtk-4.0/widgets/_checks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ radio {

&:active {
@if $contrast == 'high' {
background: bg-color(4); color: $accent_color;
background: bg-color(3); color: $accent_color;
} @else {
background: bg-color(4); color: $accent_color;
background: bg-color(3); color: $accent_color;
}
box-shadow: none;
}
Expand All @@ -67,9 +67,9 @@ radio {

&:active {
@if $contrast == 'high' {
background: bg-color(4); color: $accent_color;
background: bg-color(3); color: $accent_color;
} @else {
background: bg-color(4); color: $accent_color;
background: bg-color(3); color: $accent_color;
}
box-shadow: none;
}
Expand Down
2 changes: 1 addition & 1 deletion Helium/gtk-4.0/widgets/_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ row {
&:selected {
&:hover { background: bg-color(2); color: $accent_color; }

&:active { background: bg-color(4); color: $accent_color; }
&:active { background: bg-color(3); color: $accent_color; }

&.has-open-popup { background: bg-color(3); color: $accent_color; }
}
Expand Down
4 changes: 2 additions & 2 deletions Helium/gtk-4.0/widgets/_sidebars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ placessidebar {
&:active { background: bg-color(2); color: $accent_fg_color; }

&:selected {
&:hover { background: bg-color(3); color: $accent_fg_color; }
&:hover { background: bg-color(2); color: $accent_fg_color; }

&:active { background: bg-color(4); color: $accent_fg_color; }
&:active { background: bg-color(3); color: $accent_fg_color; }
}
}

Expand Down
8 changes: 4 additions & 4 deletions Helium/gtk-4.0/widgets/_views.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ iconview {

rubberband {
border: 1px solid $accent_color;
background: bg-color(4);
background: bg-color(3);
}

flowbox > flowboxchild,
Expand All @@ -65,7 +65,7 @@ gridview > child {
@include focus-ring();

&:selected {
background: bg-color(4); color: $accent_fg_color;
background: bg-color(3); color: $accent_fg_color;
}
}

Expand All @@ -75,8 +75,8 @@ gridview > child.activatable {
&:active { background: bg-color(2); color: $accent_fg_color; }

&:selected {
&:hover { background: bg-color(3); color: $accent_fg_color; }
&:hover { background: bg-color(2); color: $accent_fg_color; }

&:active { background: bg-color(4); color: $accent_fg_color; }
&:active { background: bg-color(3); color: $accent_fg_color; }
}
}

0 comments on commit 4725a8b

Please sign in to comment.