From ae873576bae6bf65a0411d18c82f3086c7f7904f Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 10 Oct 2023 00:03:28 -0400 Subject: [PATCH] Replace the old panel button mod with a new adjustment to the active state --- common-assets/activities-active.svg | 178 --------------------------- common-assets/activities.svg | 158 ------------------------ gnome-shell-sass/widgets/_panel.scss | 27 +--- 3 files changed, 1 insertion(+), 362 deletions(-) delete mode 100644 common-assets/activities-active.svg delete mode 100644 common-assets/activities.svg diff --git a/common-assets/activities-active.svg b/common-assets/activities-active.svg deleted file mode 100644 index 1a4ad09..0000000 --- a/common-assets/activities-active.svg +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - diff --git a/common-assets/activities.svg b/common-assets/activities.svg deleted file mode 100644 index b4a4b0d..0000000 --- a/common-assets/activities.svg +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - diff --git a/gnome-shell-sass/widgets/_panel.scss b/gnome-shell-sass/widgets/_panel.scss index fee2f98..dfa4e70 100644 --- a/gnome-shell-sass/widgets/_panel.scss +++ b/gnome-shell-sass/widgets/_panel.scss @@ -46,31 +46,6 @@ $panel_transition_duration: 250ms; // same as the overview transition duration &#panelActivities { -natural-hpadding: $base_padding * 2.5; - .panel-button { - > * { - background-image: url("common-assets/activities.svg"); - background-size: contain; - width: 24px; - height: 24px; - background-color: transparent !important; - background-gradient-direction: none !important; - border: 0 solid transparent !important; - text-shadow: 0 0 transparent !important; - transition-duration: 0ms !important; - box-shadow: none !important; - color: transparent; - } - - &:active, &:overview, &:focus, &:checked { - background-color: transparent; - box-shadow: none; - border-bottom-width: 1px; - border-color: transparent; - - > * { background-image: url("common-assets/activities-active.svg"); } - } - } - & StBoxLayout { spacing: 5px; } @@ -124,7 +99,7 @@ $panel_transition_duration: 250ms; // same as the overview transition duration box-shadow: none; .panel-button { - @include panel_button($panel_system_fg_color, $fg:$panel_system_fg_color); + @include panel_button($panel_system_fg_color, $fg:$panel_system_fg_color, $border_radius: 3px); &#panelActivities .workspace-dot { background-color: $panel_system_fg_color;