homescreens/halcyon: Update to latest unit sizing

This commit is contained in:
Devin Lin 2023-07-24 22:46:21 -04:00
parent 1963340d4f
commit c3faca672d
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ Item {
readonly property real leftMargin: Math.round(width * 0.1)
readonly property real rightMargin: Math.round(width * 0.1)
readonly property real delegateHeight: Math.round(Kirigami.Units.gridUnit * 3)
readonly property real delegateHeight: Math.round(Kirigami.Units.gridUnit * 3.5)
property bool folderShown: false

View file

@ -35,7 +35,7 @@ MobileShell.GridView {
readonly property int reservedSpaceForLabel: metrics.height
readonly property real effectiveContentWidth: width - leftMargin - rightMargin
cellWidth: gridView.effectiveContentWidth / Math.min(Math.floor(effectiveContentWidth / (Kirigami.Units.iconSizes.huge + Kirigami.Units.gridUnit * 2)), 8)
cellWidth: gridView.effectiveContentWidth / Math.min(Math.floor(effectiveContentWidth / (Kirigami.Units.iconSizes.large + Kirigami.Units.gridUnit * 2)), 8)
cellHeight: cellWidth + reservedSpaceForLabel
property int columns: Math.floor(effectiveContentWidth / cellWidth)