2023-05-25 17:25:11 -04:00
|
|
|
/* Switches */
|
|
|
|
|
|
|
|
// these are equal to the size of the SVG assets
|
|
|
|
$switch_height: 26px;
|
2024-03-25 13:34:36 -04:00
|
|
|
$switch_width: 46px;
|
2023-05-25 17:25:11 -04:00
|
|
|
|
|
|
|
.toggle-switch {
|
|
|
|
color: $fg_color;
|
|
|
|
height: $switch_height;
|
|
|
|
width: $switch_width;
|
|
|
|
background-size: contain;
|
|
|
|
background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/toggle-off-light.svg"),url("resource:///org/gnome/shell/theme/toggle-off.svg"));
|
2024-03-25 13:34:36 -04:00
|
|
|
&:checked {
|
2023-05-25 17:25:11 -04:00
|
|
|
background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/toggle-on-light.svg"),url("resource:///org/gnome/shell/theme/toggle-on.svg"));
|
|
|
|
}
|
2024-03-25 13:34:36 -04:00
|
|
|
|
|
|
|
& StIcon {icon-size: $base_icon_size;}
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|