panel: Center app icon

Giving the icon extra space may distort it, so center it vertically.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2578
This commit is contained in:
Florian Müllner 2020-05-07 14:25:13 +02:00
parent 25e4d0ba8b
commit a9d73b1017

View File

@ -214,7 +214,10 @@ var AppMenuButton = GObject.registerClass({
this._onIconThemeChanged.bind(this)); this._onIconThemeChanged.bind(this));
let iconEffect = new Clutter.DesaturateEffect(); let iconEffect = new Clutter.DesaturateEffect();
this._iconBox = new St.Bin({ style_class: 'app-menu-icon' }); this._iconBox = new St.Bin({
style_class: 'app-menu-icon',
y_align: Clutter.ActorAlign.CENTER,
});
this._iconBox.add_effect(iconEffect); this._iconBox.add_effect(iconEffect);
this._container.add_actor(this._iconBox); this._container.add_actor(this._iconBox);