[gnome-shell/uajain/align-switcher-label] switchMonitor: Center align switcher icon's label



commit 9b1e76fd1f651f1f10b5783432be0eda1dfc85d8
Author: Umang Jain <mailumangjain gmail com>
Date:   Thu Jan 2 12:55:14 2020 +0530

    switchMonitor: Center align switcher icon's label
    
    Fallout from 104071acbd.

 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 ded8c49c02..5ac5825224 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);


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