summaryrefslogtreecommitdiffstats
path: root/data/theme/gnome-shell-sass/widgets/_switches.scss
diff options
context:
space:
mode:
Diffstat (limited to 'data/theme/gnome-shell-sass/widgets/_switches.scss')
-rw-r--r--data/theme/gnome-shell-sass/widgets/_switches.scss16
1 files changed, 16 insertions, 0 deletions
diff --git a/data/theme/gnome-shell-sass/widgets/_switches.scss b/data/theme/gnome-shell-sass/widgets/_switches.scss
new file mode 100644
index 0000000..fd7472e
--- /dev/null
+++ b/data/theme/gnome-shell-sass/widgets/_switches.scss
@@ -0,0 +1,16 @@
+/* Switches */
+
+// these are equal to the size of the SVG assets
+$switch_height: 22px;
+$switch_width: 46px;
+
+.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.svg"),url("resource:///org/gnome/shell/theme/toggle-off-dark.svg"));
+ &:checked {
+ background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/toggle-on.svg"),url("resource:///org/gnome/shell/theme/toggle-on-dark.svg"));
+ }
+} \ No newline at end of file