From c3faca672d5e9ce38a79e1aec0176ec2c8b51101 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 24 Jul 2023 22:46:21 -0400 Subject: [PATCH] homescreens/halcyon: Update to latest unit sizing --- .../homescreens/halcyon/package/contents/ui/FavoritesView.qml | 2 +- .../homescreens/halcyon/package/contents/ui/GridAppList.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/containments/homescreens/halcyon/package/contents/ui/FavoritesView.qml b/containments/homescreens/halcyon/package/contents/ui/FavoritesView.qml index 2758326b..c70a0c77 100644 --- a/containments/homescreens/halcyon/package/contents/ui/FavoritesView.qml +++ b/containments/homescreens/halcyon/package/contents/ui/FavoritesView.qml @@ -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 diff --git a/containments/homescreens/halcyon/package/contents/ui/GridAppList.qml b/containments/homescreens/halcyon/package/contents/ui/GridAppList.qml index 6c957898..e99bd78c 100644 --- a/containments/homescreens/halcyon/package/contents/ui/GridAppList.qml +++ b/containments/homescreens/halcyon/package/contents/ui/GridAppList.qml @@ -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)