[gnome-shell/T29763: 190/249] Revert "Revert "appDisplay: Fix small app folder icons when using HIDPI""



commit 86437e0b4b7da0eaea3af89d58e9ff3cec4c6bd4
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Apr 3 15:59:44 2020 -0300

    Revert "Revert "appDisplay: Fix small app folder icons when using HIDPI""
    
    This reverts commit 93f84e2e368f4e4b2f0810491e9113e287fa1ace. The
    problem was always in the BaseIcon, not in the size we pass.
    
    https://phabricator.endlessm.com/T29687

 js/ui/appDisplay.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 23d1267147..db22205b1f 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1225,11 +1225,12 @@ class FolderView extends BaseAppView {
         });
         layout.hookup_style(icon);
         let subSize = Math.floor(FOLDER_SUBICON_FRACTION * size);
+        let scale = St.ThemeContext.get_for_stage(global.stage).scale_factor;
 
         let numItems = this._orderedItems.length;
         let rtl = icon.get_text_direction() == Clutter.TextDirection.RTL;
         for (let i = 0; i < 4; i++) {
-            let bin = new St.Bin({ width: subSize, height: subSize });
+            let bin = new St.Bin({ width: subSize * scale, height: subSize * scale });
             if (i < numItems)
                 bin.child = this._orderedItems[i].app.create_icon_texture(subSize);
             layout.attach(bin, rtl ? (i + 1) % 2 : i % 2, Math.floor(i / 2), 1, 1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]