diff --git a/data/theme/gnome-shell-sass/widgets/_app-grid.scss b/data/theme/gnome-shell-sass/widgets/_app-grid.scss index ba7c52174..13eb92683 100644 --- a/data/theme/gnome-shell-sass/widgets/_app-grid.scss +++ b/data/theme/gnome-shell-sass/widgets/_app-grid.scss @@ -89,13 +89,6 @@ $app_grid_fg_color: #fff; height: 620px; } -.app-folder-icon { - padding: $base_padding; - spacing-rows: $base_spacing; - spacing-columns: $base_spacing; -} - - // Running app indicator (also shown in dash) .app-well-app-running-dot { height: 5px; diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index a80fb773b..61a563843 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1830,13 +1830,16 @@ class FolderView extends BaseAppView { } createFolderIcon(size) { - let layout = new Clutter.GridLayout(); + const layout = new Clutter.GridLayout({ + row_homogeneous: true, + column_homogeneous: true, + }); let icon = new St.Widget({ layout_manager: layout, - style_class: 'app-folder-icon', x_align: Clutter.ActorAlign.CENTER, + style: 'width: %dpx; height: %dpx;'.format(size, size), }); - layout.hookup_style(icon); + let subSize = Math.floor(FOLDER_SUBICON_FRACTION * size); let numItems = this._orderedItems.length;