mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
homescreens/halcyon: Update to latest unit sizing
This commit is contained in:
parent
1963340d4f
commit
c3faca672d
2 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ Item {
|
||||||
|
|
||||||
readonly property real leftMargin: Math.round(width * 0.1)
|
readonly property real leftMargin: Math.round(width * 0.1)
|
||||||
readonly property real rightMargin: 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
|
property bool folderShown: false
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ MobileShell.GridView {
|
||||||
readonly property int reservedSpaceForLabel: metrics.height
|
readonly property int reservedSpaceForLabel: metrics.height
|
||||||
readonly property real effectiveContentWidth: width - leftMargin - rightMargin
|
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
|
cellHeight: cellWidth + reservedSpaceForLabel
|
||||||
|
|
||||||
property int columns: Math.floor(effectiveContentWidth / cellWidth)
|
property int columns: Math.floor(effectiveContentWidth / cellWidth)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue