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
(cherry picked from commit a9d73b1017
)
This commit is contained in:
parent
6a9ce0f18c
commit
881d330bc0
@ -216,7 +216,10 @@ var AppMenuButton = GObject.registerClass({
|
||||
this._onIconThemeChanged.bind(this));
|
||||
|
||||
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._container.add_actor(this._iconBox);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user