From f9d480cfe50ca1d7a0f0b5a2b8bb9932962bfbe7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 17:07:22 +0200 Subject: Adding upstream version 3.38.6. 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..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 -- cgit v1.2.3