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:
parent
25e4d0ba8b
commit
a9d73b1017
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user