summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Dreßler <verdre@v0yd.nl>2020-06-03 18:17:54 +0200
committerFlorian Müllner <fmuellner@gnome.org>2020-08-11 17:28:59 +0200
commit40fd8b3c1aed5ad79deada3c6005c97efb03e5de (patch)
treeae2322f0353d0b8fa66942bfb33235bcd5de4d21
parentfa6df03844023bc61519d57ae4c717bbbea6759d (diff)
downloadgnome-shell-sass-40fd8b3c1aed5ad79deada3c6005c97efb03e5de.tar.gz
workspace: Use the new WorkspaceLayout for allocating window clones
Switch to the new WorkspaceLayout layout manager to allocate the window clones of the overview properly using Clutters layouting mechanisms. Since we now no longer make use of the fullGeometry, we can remove the setFullGeometry() function from the Workspace class. Also we can stop setting the actualGeometry on the Workspaces and WorkspaceViews and instead just set the fixed position and size of the views to their full or actual geometry. This also has the benefit that we no longer have to set a custom clip, but can simply enable clip_to_allocation. The geometry needs to be set inside a BEFORE_REDRAW later because _updateWorkspacesActualGeometry() is called from a notify::allocation handler. This isn't doing any animations when showing/hiding the overview yet, we'll add that in the next commit. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1305
-rw-r--r--widgets/_window-picker.scss8
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/_window-picker.scss b/widgets/_window-picker.scss
index 48d6f73..1b93218 100644
--- a/widgets/_window-picker.scss
+++ b/widgets/_window-picker.scss
@@ -1,7 +1,7 @@
/* Window Picker */
-$window_picker_spacing: $base_spacing * 2; // 16px
-$window_picker_padding: $base_padding * 2; // 16px
+$window_picker_spacing: $base_spacing; // 6px
+$window_picker_padding: $base_padding * 2; // 12px
$window_thumbnail_border_color:transparentize($selected_fg_color, 0.65);
@@ -13,8 +13,8 @@ $window_clone_border_size: 6px;
// Window picker
.window-picker {
// Space between window thumbnails
- -horizontal-spacing: $window_picker_spacing;
- -vertical-spacing: $window_picker_spacing;
+ spacing: $window_picker_spacing;
+
// Padding for container around window thumbnails
padding: $window_picker_padding;