[gnome-shell] appDisplay: Use icon-size instead of width/height for system actions



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]