[gnome-shell/T27795: 105/138] appDisplay: Allow defining the fixed size of the icons via the CSS file



commit cd2115c8d2a53079f8d24dd9fde1198b57a65c7c
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Wed Feb 7 15:43:41 2018 +0000

    appDisplay: Allow defining the fixed size of the icons via the CSS file
    
    The upstream shell calculates the size of the icons dynamically depending
    on the available size of the screen, but we don't want that so we better
    disable the manual mode to set the icons' sizes so we can use CSS.
    
    https://phabricator.endlessm.com/T17658

 data/theme/gnome-shell-sass/_endless.scss | 8 ++++++++
 js/ui/appDisplay.js                       | 4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/_endless.scss b/data/theme/gnome-shell-sass/_endless.scss
index 4c7c5d5756..74a73c1ca6 100644
--- a/data/theme/gnome-shell-sass/_endless.scss
+++ b/data/theme/gnome-shell-sass/_endless.scss
@@ -390,6 +390,14 @@ popup-separator-menu-item {
     & > StBoxLayout { padding: 0px 70px; }
 }
 
+.icon-grid {
+    .overview-icon {
+        icon-size: 64px;
+        border-radius: 15px;
+        font-weight: bold;
+    }
+}
+
 // Desktop Search (text entry widget)
 
 #searchEntry {
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 4811a8451e..277ccaf649 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1218,7 +1218,7 @@ var FolderIcon = class FolderIcon {
 
         this.icon = new IconGrid.BaseIcon('', {
             createIcon: this._createIcon.bind(this),
-            setSizeManually: true
+            setSizeManually: false,
         });
         this.actor.set_child(this.icon);
         this.actor.label_actor = this.icon.label;
@@ -1825,7 +1825,7 @@ var AppIcon = class AppIcon {
 
         iconParams['createIcon'] = this._createIcon.bind(this);
         iconParams['createExtraIcons'] = this._createExtraIcons.bind(this);
-        iconParams['setSizeManually'] = true;
+        iconParams['setSizeManually'] = false;
         this.icon = new IconGrid.BaseIcon(app.get_name(), iconParams);
         this._iconContainer.add_child(this.icon);
 


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