Skip to content

Commit

Permalink
He.Switch stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Feb 2, 2024
1 parent 167476b commit 98467e4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Helium/gtk-3.0/widgets/_headerbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ***************
%titlebar,
headerbar {
min-height: 32px;
min-height: 36px;
border: 1px solid $headerbar_shade_color;
border-radius: 0;

Expand Down
14 changes: 13 additions & 1 deletion Helium/gtk-4.0/_tauos.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1851,4 +1851,16 @@ button.image-button.disclosure-button {
border-radius: px-to-rem(9999px);
min-width: 4px;
min-height: 4px;
}
}

.switch switch slider { border:8px solid $outline; background: $outline; }
.switch switch:hover slider { border:11px solid $outline; }
.switch switch:checked slider { border:8px solid $surface_bright_bg_color; background: $surface_bright_bg_color; }
.switch switch:checked:hover slider { border:11px solid $surface_bright_bg_color; }

.switch .negative { color: $outline; }
.switch .negative.active { color: $surface_bright_bg_color; }
.switch:disabled .negative { color: transparent; }

.switch .positive { color: $accent_color; }
.switch:disabled .positive { color: $accent_color; }
2 changes: 1 addition & 1 deletion Helium/gtk-4.0/widgets/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ switch {
}

&:disabled > slider {
border: 4px solid $slider_color;
border: 8px solid $surface_bright_bg_color; background: $none;
}

.osd & {
Expand Down

0 comments on commit 98467e4

Please sign in to comment.