[gnome-shell] appDisplay: Use icon-size instead of width/height for system actions
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appDisplay: Use icon-size instead of width/height for system actions
- Date: Tue, 16 Feb 2021 13:59:23 +0000 (UTC)
commit e65e5edee61282c9662f13e2b455752d6c8216c5
Author: Jonas Dreßler <verdre v0yd nl>
Date: Tue Feb 16 14:17:55 2021 +0100
appDisplay: Use icon-size instead of width/height for system actions
When creating an icon for the system actions search provider, set the
icon size using StIcons own icon-size property instead of ClutterActors
width and height property. That ensures the scale factor is applied and
the icon will be properly scaled on hiDPI screens.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1686>
js/ui/appDisplay.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 72e0e53791..dee7df3002 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1432,8 +1432,7 @@ var AppSearchProvider = class AppSearchProvider {
const createIcon = size => new St.Icon({
icon_name: iconName,
- width: size,
- height: size,
+ icon_size: size,
style_class: 'system-action-icon',
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]