View Single Post
Posts: 139 | Thanked: 176 times | Joined on Oct 2012
#607
I have modified the 5x6 homescreen patch to have 5x7 grid with icons scaled down by the power of 0.9. It works, but both original patch and mine still have 4 columns in folders (and at the folder icon picker), haven't found a file to tweak to fix this.

This is on Vaarainjärvi.

Code:
--- original/usr/share/lipstick-jolla-home-qt5/launcher/LauncherGrid.qml	2014-06-08 21:55:01.847978384 +0200
+++ patched/usr/share/lipstick-jolla-home-qt5/launcher/LauncherGrid.qml	2014-06-08 22:14:11.587192377 +0200
@@ -17,8 +17,8 @@
 
     property Item reorderItem
     property Item movingItem
-    property int columns: 4
-    property int initialCellWidth: (desktop.width - Theme.paddingLarge * 2) / columns
+    property int columns: 5
+    property int initialCellWidth: (desktop.width - Theme.paddingLarge) / columns
     property real firstRowOpacity: Math.min(Math.max((dashboard.contentY - dashboard.lockscreenAndStatusAreaHeight)/cellHeight, 0.0), 1.0)
     property bool launcherEditMode: desktop.removeApplicationEnabled
     property var launcherModel: model
@@ -31,8 +31,8 @@
     width: cellWidth * columns
     anchors.horizontalCenter: parent.horizontalCenter
     // Increase cellWidth so that icon vertical edges are Theme.paddingLarge away from display edges
-    cellWidth: Math.round(initialCellWidth + (initialCellWidth - Theme.iconSizeLauncher) / (columns - 1))
-    cellHeight: Math.round(Screen.height / 6)
+    cellWidth: Math.round(initialCellWidth + (initialCellWidth - Theme.iconSizeLauncher * 0.9) / (columns - 1))
+    cellHeight: Math.round(Screen.height / 7)
 
     function categoryQsTrIds() {
         //% "AudioVideo"
@@ -440,10 +440,14 @@
                 id: launcherIcon
                 anchors {
                     centerIn: parent
-                    verticalCenterOffset: rootFolder && index <= 3  ? 0 : Math.round(-launcherText.height/2)
+                    verticalCenterOffset: rootFolder && index < gridview.columns  ? 0 : Math.round(-launcherText.height/2)
                 }
                 icon: model.object.iconId
                 pressed: down
+                width: Theme.iconSizeLauncher * 0.9
+                height: Theme.iconSizeLauncher * 0.9
+                sourceSize.width: Theme.iconSizeLauncher * 0.9
+                sourceSize.height: Theme.iconSizeLauncher * 0.9
                 opacity: isUpdating && folderItemCount == 0 ? 0.2 : 1.0
                 Text {
                     font.pixelSize: Theme.fontSizeExtraLarge