From e65e5edee61282c9662f13e2b455752d6c8216c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 16 Feb 2021 14:17:55 +0100 Subject: [PATCH] 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: --- 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 72e0e5379..dee7df300 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', });