From 27c660d2a9204bf423103bc83dc8e2f162b4474b Mon Sep 17 00:00:00 2001 From: Sam Hewitt Date: Fri, 16 Nov 2018 13:44:52 -0500 Subject: [PATCH] theme: Replace page indicator assets with css https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/297 --- data/gnome-shell-theme.gresource.xml | 4 -- data/theme/gnome-shell-sass/_common.scss | 14 +++-- data/theme/page-indicator-active.svg | 71 ------------------------ data/theme/page-indicator-checked.svg | 67 ---------------------- data/theme/page-indicator-hover.svg | 67 ---------------------- data/theme/page-indicator-inactive.svg | 67 ---------------------- 6 files changed, 8 insertions(+), 282 deletions(-) delete mode 100644 data/theme/page-indicator-active.svg delete mode 100644 data/theme/page-indicator-checked.svg delete mode 100644 data/theme/page-indicator-hover.svg delete mode 100644 data/theme/page-indicator-inactive.svg diff --git a/data/gnome-shell-theme.gresource.xml b/data/gnome-shell-theme.gresource.xml index e292d33a3..451d0980e 100644 --- a/data/gnome-shell-theme.gresource.xml +++ b/data/gnome-shell-theme.gresource.xml @@ -25,10 +25,6 @@ no-notifications.svg noise-texture.png pad-osd.css - page-indicator-active.svg - page-indicator-inactive.svg - page-indicator-checked.svg - page-indicator-hover.svg process-working.svg toggle-off-us.svg toggle-off-intl.svg diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss index 829791419..c905b3b75 100644 --- a/data/theme/gnome-shell-sass/_common.scss +++ b/data/theme/gnome-shell-sass/_common.scss @@ -1446,15 +1446,17 @@ StScrollBar { padding: 15px 20px; .page-indicator-icon { - width: 18px; - height: 18px; - background-image: url(resource:///org/gnome/shell/theme/page-indicator-inactive.svg); + width: 12px; + height: 12px; + background-color: transparent; + border: 2px solid rgba(255, 255, 255, 0.4); + border-radius:12px; } - &:hover .page-indicator-icon { background-image: url(resource:///org/gnome/shell/theme/page-indicator-hover.svg); } - &:active .page-indicator-icon { background-image: url(resource:///org/gnome/shell/theme/page-indicator-active.svg); } + &:hover .page-indicator-icon { border-color: white; } + &:active .page-indicator-icon { border: none; margin: 2px; background-color:#fff; } &:checked .page-indicator-icon, - &:checked:active { background-image: url(resource:///org/gnome/shell/theme/page-indicator-checked.svg); } + &:checked:active { background-color: #fff;} } .no-frequent-applications-label { @extend %status_text; } diff --git a/data/theme/page-indicator-active.svg b/data/theme/page-indicator-active.svg deleted file mode 100644 index 51a76024e..000000000 --- a/data/theme/page-indicator-active.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/data/theme/page-indicator-checked.svg b/data/theme/page-indicator-checked.svg deleted file mode 100644 index 38b720f86..000000000 --- a/data/theme/page-indicator-checked.svg +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/data/theme/page-indicator-hover.svg b/data/theme/page-indicator-hover.svg deleted file mode 100644 index a4ea72ffd..000000000 --- a/data/theme/page-indicator-hover.svg +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/data/theme/page-indicator-inactive.svg b/data/theme/page-indicator-inactive.svg deleted file mode 100644 index 4ff2246c8..000000000 --- a/data/theme/page-indicator-inactive.svg +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - -