From beb34eb1051fc28ac5975f4a60b9e3f13a9d2fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 29 Jun 2024 21:21:29 +0200 Subject: [PATCH] popupMenu: Center-align switches The default align of FILL was fine with the asset-based switches, as the image would still keep its fixed height. But after the switch to a pure CSS implementation, the alignment now results in stretched switches. Fix this by explicitly center-aligning the widget. Close: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7745 Part-of: --- js/ui/popupMenu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index d502a7b9e..b6ad54508 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -344,6 +344,7 @@ export const Switch = GObject.registerClass({ super._init({ style_class: 'toggle-switch', accessible_role: Atk.Role.CHECK_BOX, + y_align: Clutter.ActorAlign.CENTER, track_hover: true, reactive: true, });