From 76514e8b231b88f9f864db4d402d527a0e7dbde6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 30 May 2025 16:39:22 +0200 Subject: [PATCH] window-list: Adjust to workspace-indicator changes Keep the `.panel-button` class to get the expected hover/focus/active styling when using a regular menu button, but remove the horizontal padding when using previews for fittsability. Part-of: --- extensions/window-list/extension.js | 6 ------ extensions/window-list/stylesheet-dark.css | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js index 08d2c28b..8ed5a8bd 100644 --- a/extensions/window-list/extension.js +++ b/extensions/window-list/extension.js @@ -1472,12 +1472,6 @@ class BottomWorkspaceIndicator extends WorkspaceIndicator { GObject.registerClass(this); } - constructor(params) { - super(params); - - this.remove_style_class_name('panel-button'); - } - setMenu(menu) { super.setMenu(menu); diff --git a/extensions/window-list/stylesheet-dark.css b/extensions/window-list/stylesheet-dark.css index af332686..388bbc9b 100644 --- a/extensions/window-list/stylesheet-dark.css +++ b/extensions/window-list/stylesheet-dark.css @@ -6,6 +6,11 @@ */ @import url("stylesheet-workspace-switcher-dark.css"); +.window-list-workspace-indicator.previews { + -natural-hpadding: 0 !important; + -minimum-hpadding: 0 !important; +} + .window-list { spacing: 2px; font-size: 10pt;