From 5f5a3b78a536280c3ff7160c1df919aebdae28c8 Mon Sep 17 00:00:00 2001 From: Jakub Steiner Date: Tue, 16 Apr 2019 16:05:10 +0200 Subject: [PATCH] theme: update toggle switch design - for the short term, just replace the SVG assets See https://gitlab.gnome.org/GNOME/gnome-shell/issues/841 for background --- data/theme/gnome-shell-sass/_common.scss | 2 +- data/theme/toggle-off-intl.svg | 198 ++++-------------- data/theme/toggle-off-us.svg | 256 +---------------------- data/theme/toggle-on-intl.svg | 179 ++++------------ data/theme/toggle-on-us.svg | 208 +----------------- 5 files changed, 94 insertions(+), 749 deletions(-) mode change 100644 => 120000 data/theme/toggle-off-us.svg mode change 100644 => 120000 data/theme/toggle-on-us.svg diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss index 835d44b55..2d4800737 100644 --- a/data/theme/gnome-shell-sass/_common.scss +++ b/data/theme/gnome-shell-sass/_common.scss @@ -157,7 +157,7 @@ StScrollBar { /* Switches */ .toggle-switch { - width: 65px; + width: 46px; height: 22px; background-size: contain; } diff --git a/data/theme/toggle-off-intl.svg b/data/theme/toggle-off-intl.svg index a1734fbe7..cb0871277 100644 --- a/data/theme/toggle-off-intl.svg +++ b/data/theme/toggle-off-intl.svg @@ -10,124 +10,62 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="65" + width="46" height="22" - id="svg2857" + viewBox="0 0 46 22" version="1.1" - inkscape:version="0.48.5 r10040" - sodipodi:docname="toggle-off-us.svg"> + id="svg2751" + inkscape:version="0.92.4 5da689c313, 2019-01-14" + sodipodi:docname="toggle-off-intl.svg"> - - + id="defs2745"> - + id="linearGradient3329"> + id="stop3325" /> - - - - - - - + id="stop3327" /> + gradientTransform="translate(-42.760724)" /> + id="grid3298" /> + id="metadata2748"> @@ -142,68 +80,24 @@ inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - transform="translate(-444.64286,-781.36218)"> - - - - - - - - - - - - - + transform="translate(0,-291.17916)"> + + diff --git a/data/theme/toggle-off-us.svg b/data/theme/toggle-off-us.svg deleted file mode 100644 index 941501dfd..000000000 --- a/data/theme/toggle-off-us.svg +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - OFF - - - diff --git a/data/theme/toggle-off-us.svg b/data/theme/toggle-off-us.svg new file mode 120000 index 000000000..ce8d08f1c --- /dev/null +++ b/data/theme/toggle-off-us.svg @@ -0,0 +1 @@ +toggle-off-intl.svg \ No newline at end of file diff --git a/data/theme/toggle-on-intl.svg b/data/theme/toggle-on-intl.svg index b00706580..142e0a82a 100644 --- a/data/theme/toggle-on-intl.svg +++ b/data/theme/toggle-on-intl.svg @@ -10,117 +10,69 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="65" + width="46" height="22" - id="svg2857" + viewBox="0 0 46 22" version="1.1" - inkscape:version="0.91 r13725" + id="svg2751" + inkscape:version="0.92.4 5da689c313, 2019-01-14" sodipodi:docname="toggle-on-intl.svg"> - - + id="defs2745"> - + id="linearGradient3329"> + id="stop3325" /> + id="stop3327" /> - - - - - + gradientTransform="translate(-19)" /> + id="grid3298" /> + id="metadata2748"> image/svg+xml - + @@ -128,65 +80,24 @@ inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - transform="translate(-444.64286,-781.36218)"> - - - - - - - - - - - - - + transform="translate(0,-291.17916)"> + + diff --git a/data/theme/toggle-on-us.svg b/data/theme/toggle-on-us.svg deleted file mode 100644 index 501fc3010..000000000 --- a/data/theme/toggle-on-us.svg +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - ON - - - diff --git a/data/theme/toggle-on-us.svg b/data/theme/toggle-on-us.svg new file mode 120000 index 000000000..1e501b644 --- /dev/null +++ b/data/theme/toggle-on-us.svg @@ -0,0 +1 @@ +toggle-on-intl.svg \ No newline at end of file