diff --git a/gnome-shell-panel-center-app-icon.patch b/gnome-shell-panel-center-app-icon.patch new file mode 100644 index 0000000..fc7299a --- /dev/null +++ b/gnome-shell-panel-center-app-icon.patch @@ -0,0 +1,34 @@ +From 881d330bc0bb3735853dd6c522fcc6fed4646f1f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Thu, 7 May 2020 12:25:13 +0000 +Subject: [PATCH] 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 a9d73b10173b00024266fff49a4c3709ca56b93b) +--- + 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 095b400de8..ef1ba6e128 100644 +--- a/js/ui/panel.js ++++ b/js/ui/panel.js +@@ -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); + +-- +2.26.2 + diff --git a/gnome-shell.changes b/gnome-shell.changes index aeb5f92..db8474c 100644 --- a/gnome-shell.changes +++ b/gnome-shell.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 7 19:27:38 UTC 2020 - Bjørn Lie + +- Add gnome-shell-panel-center-app-icon.patch: panel: Center app + icon. Giving the icon extra space may distort it, so center it + vertically. + ------------------------------------------------------------------- Thu May 7 03:13:27 UTC 2020 - Stasiek Michalski diff --git a/gnome-shell.spec b/gnome-shell.spec index ef0fcbc..53d910b 100644 --- a/gnome-shell.spec +++ b/gnome-shell.spec @@ -42,6 +42,8 @@ Patch4: gnome-shell-fate324570-Make-GDM-background-image-configurable.pa Patch5: gnome-shell-jscSLE9267-Remove-sessionList-of-endSessionDialog.patch # PATCH-FIX-UPSTREAM gnome-shell-Get-resource-scale-by-get_resource_scale.patch bsc#1169845 glgo#GNOME/gnome-shell!1206 xwang@suse.com -- Get resource scale by get_resource_scale Patch6: gnome-shell-Get-resource-scale-by-get_resource_scale.patch +# PATCH-FIX-UPSTREAM gnome-shell-panel-center-app-icon.patch -- panel: Center app icon +Patch7: gnome-shell-panel-center-app-icon.patch ## NOTE: Keep SLE-only patches at bottom (starting on 1000). # PATCH-FEATURE-SLE gnome-shell-gdm-login-applet.patch fate#314545 dliang@suse.com -- Add an applet on login UI to display suse icon, product name, hostname. @@ -181,6 +183,7 @@ This package contains an optional extensions app for managing GNOME Shell extens #patch4 -p1 #patch5 -p1 %patch6 -p1 +%patch7 -p1 translation-update-upstream