[gnome-shell-sass] workspaceSwitcherPopup: Drop direction parameter



commit 08a8c9d810602dd48524061c331ad00d562d1ca1
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Jan 26 01:26:44 2022 +0100

    workspaceSwitcherPopup: Drop direction parameter
    
    The original popup included arrows that indicated the direction of
    the switch. We stopped doing that a long time ago, and ever since
    the popup has only indicated active vs. non-active workspaces.
    
    Simplify both the API and style to reflect that.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2127>

 widgets/_workspace-switcher.scss | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/widgets/_workspace-switcher.scss b/widgets/_workspace-switcher.scss
index 69cf414..3edacda 100644
--- a/widgets/_workspace-switcher.scss
+++ b/widgets/_workspace-switcher.scss
@@ -21,22 +21,18 @@ $ws_border_radius: $modal_radius + 8px;
   spacing: $base_spacing * 2;
 }
 
-.ws-switcher-box {
+.ws-switcher-indicator {
   background: transparent;
   height: 50px;
   background-size: 32px;
   border: 1px solid transparentize($osd_fg_color,0.9);
   border-radius: $base_border_radius + 3px;
-}
 
-// active workspace in the switcher
-.ws-switcher-active-up,
-.ws-switcher-active-down,
-.ws-switcher-active-left,
-.ws-switcher-active-right {
-  height: 52px;
-  background-color: $selected_bg_color;
-  border: 1px solid if($variant=='light', darken($selected_bg_color, 8%), lighten($selected_bg_color, 5%));
-  border-radius: $base_border_radius + 3px;
-  color: $selected_fg_color;
+  &:active {
+    height: 52px;
+    background-color: $selected_bg_color;
+    border: 1px solid if($variant=='light', darken($selected_bg_color, 8%), lighten($selected_bg_color, 5%));
+    border-radius: $base_border_radius + 3px;
+    color: $selected_fg_color;
+  }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]