[gnome-shell] audioDeviceSelection: Center-align icons



commit 5cfec80e9d470165dae4c4c636ddd332da8b4279
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Oct 21 03:29:18 2020 +0200

    audioDeviceSelection: Center-align icons
    
    When the icon area gets allocated additional space, we want the
    icons centered rather than left-aligned. This may happen in locales
    with long-ish translations for the title or buttons when only a
    subset of possible icons is shown.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3307

 js/ui/audioDeviceSelection.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/audioDeviceSelection.js b/js/ui/audioDeviceSelection.js
index 1e9cb11fec..07b8171339 100644
--- a/js/ui/audioDeviceSelection.js
+++ b/js/ui/audioDeviceSelection.js
@@ -43,6 +43,7 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
 
         this._selectionBox = new St.BoxLayout({
             style_class: 'audio-selection-box',
+            x_align: Clutter.ActorAlign.CENTER,
             x_expand: true,
         });
         content.add_child(this._selectionBox);


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