Adjust margins

pull/6/head
reionwong 4 years ago
parent d2da612ca9
commit eeb37de614

@ -57,16 +57,10 @@ Item {
IconItem {
id: icon
anchors {
horizontalCenter: parent.horizontalCenter
top: parent.top
bottom: label.top
leftMargin: root.maxSpacing * 2
rightMargin: root.maxSpacing * 2
topMargin: root.maxSpacing * 2
bottomMargin: root.maxSpacing * 2
}
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.bottom: label.top
anchors.margins: FishUI.Units.largeSpacing * 2
width: height
height: width

@ -25,7 +25,7 @@ import Cutefish.Launcher 1.0
PageView {
id: control
property int iconSize: 128 + root.maxSpacing * 2
property int iconSize: 128 + FishUI.Units.largeSpacing * 2
property int cellWidth: {
var extraWidth = calcExtraSpacing(iconSize, control.width)

@ -139,8 +139,7 @@ Item {
id: mainLayout
anchors.fill: parent
anchors.leftMargin: launcher.screenAvailableRect ? launcher.screenAvailableRect.x : 0
// anchors.topMargin: launcher.screenAvailableRect ? launcher.screenAvailableRect.y + root.maxSpacing * 2 : 0
anchors.topMargin: launcher.screenRect.y + FishUI.Units.largeSpacing * 2
anchors.topMargin: launcher.screenAvailableRect ? launcher.screenAvailableRect.y : 0
anchors.rightMargin: launcher.screenRect.width - (launcher.screenAvailableRect.x + launcher.screenAvailableRect.width)
anchors.bottomMargin: launcher.screenRect.height - (launcher.screenAvailableRect.y + launcher.screenAvailableRect.height - root.verticalSpacing)
@ -227,8 +226,8 @@ Item {
LauncherGridView {
id: appView
anchors.fill: parent
anchors.leftMargin: gridItem.width * 0.07
anchors.rightMargin: gridItem.width * 0.07
anchors.leftMargin: gridItem.width * 0.1
anchors.rightMargin: gridItem.width * 0.1
Layout.alignment: Qt.AlignHCenter
focus: true

Loading…
Cancel
Save