From e07a5749b7ec25f2adcdd60dc09dcd401736fd2c Mon Sep 17 00:00:00 2001 From: Umang Jain Date: Thu, 2 Jan 2020 12:55:14 +0530 Subject: [PATCH] switchMonitor: Center align switcher icon's label Fallout from 104071acbd. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/913 --- js/ui/switchMonitor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui/switchMonitor.js b/js/ui/switchMonitor.js index ded8c49c0..5ac582522 100644 --- a/js/ui/switchMonitor.js +++ b/js/ui/switchMonitor.js @@ -86,7 +86,10 @@ class SwitchMonitorSwitcher extends SwitcherPopup.SwitcherList { icon_size: APP_ICON_SIZE }); box.add_child(icon); - let text = new St.Label({ text: item.label }); + let text = new St.Label({ + text: item.label, + x_align: Clutter.ActorAlign.CENTER, + }); box.add_child(text); this.addItem(box, text);