From e4283f6d48b98e764b988b43bbc86b9d52e6ec94 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:54:43 +0200 Subject: Adding upstream version 43.9. Signed-off-by: Daniel Baumann --- data/theme/gnome-shell-sass/widgets/_switches.scss | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 data/theme/gnome-shell-sass/widgets/_switches.scss (limited to 'data/theme/gnome-shell-sass/widgets/_switches.scss') 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..b6d8fe8 --- /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: 26px; +$switch_width: 48px; + +.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")); + &:checked { + background-image: if($variant == 'light', url("resource:///org/gnome/shell/theme/toggle-on-light.svg"),url("resource:///org/gnome/shell/theme/toggle-on.svg")); + } +} -- cgit v1.2.3