[gnome-shell] panel: Center app icon
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] panel: Center app icon
- Date: Thu, 7 May 2020 13:07:56 +0000 (UTC)
commit a9d73b10173b00024266fff49a4c3709ca56b93b
Author: Florian Müllner <fmuellner gnome org>
Date: Thu May 7 14:25:13 2020 +0200
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
js/ui/panel.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 1c6e3f368e..8d9e71872d 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -214,7 +214,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]