Update spacings

pull/4/head
cutefishd 5 years ago
parent 07933f9991
commit 6c966342e0

@ -6,8 +6,8 @@ import Cutefish.Launcher 1.0
PageView { PageView {
id: gridView id: gridView
property int iconSize: gridView.width > gridView.height ? gridView.width * 0.09 + root.horizontalSpacing property int iconSize: gridView.width > gridView.height ? gridView.width * 0.09 + root.horizontalSpacing * 2
: gridView.height * 0.09 + root.verticalSpacing : gridView.height * 0.09 + root.verticalSpacing * 2
property int cellWidth: { property int cellWidth: {
var extraWidth = calcExtraSpacing(iconSize, gridView.width) var extraWidth = calcExtraSpacing(iconSize, gridView.width)
@ -31,10 +31,10 @@ PageView {
LauncherGridDelegate { LauncherGridDelegate {
id: delegate id: delegate
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: root.horizontalSpacing anchors.leftMargin: root.horizontalSpacing * 1.5
anchors.rightMargin: root.horizontalSpacing anchors.rightMargin: root.horizontalSpacing * 1.5
anchors.topMargin: root.verticalSpacing anchors.topMargin: root.verticalSpacing * 1.5
anchors.bottomMargin: root.verticalSpacing anchors.bottomMargin: root.verticalSpacing * 1.5
} }
} }

Loading…
Cancel
Save