[gnome-shell/gbsneto/center-folders] folderView: Center folder icon
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/center-folders] folderView: Center folder icon
- Date: Mon, 11 Nov 2019 21:12:45 +0000 (UTC)
commit 913990b9eac95565479d98bc03d46ca4b55be93e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Nov 11 18:07:19 2019 -0300
folderView: Center folder icon
The FolderView class is responsible for creating the 4-item
grid of the folder icon, with the preview of the first four
apps inside the folder.
However, with the deprecation of StAlign as child properties,
the folder icon stopped being horizontally centralized.
Center the folder icon horizontally again.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/817
js/ui/appDisplay.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 98bd5ec968..9a7b645214 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1305,8 +1305,11 @@ class FolderView extends BaseAppView {
createFolderIcon(size) {
let layout = new Clutter.GridLayout();
- let icon = new St.Widget({ layout_manager: layout,
- style_class: 'app-folder-icon' });
+ let icon = new St.Widget({
+ layout_manager: layout,
+ style_class: 'app-folder-icon',
+ x_align: Clutter.ActorAlign.CENTER,
+ });
layout.hookup_style(icon);
let subSize = Math.floor(FOLDER_SUBICON_FRACTION * size);
let scale = St.ThemeContext.get_for_stage(global.stage).scale_factor;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]