Adjusted icon size

pull/4/head 0.2
rekols 5 years ago
parent b53c5a12e8
commit d0dcf9c008

@ -68,13 +68,12 @@ Item {
horizontalCenter: parent.horizontalCenter horizontalCenter: parent.horizontalCenter
top: parent.top top: parent.top
bottom: label.top bottom: label.top
leftMargin: Math.max(FishUI.Units.largeSpacing * 2, root.maxSpacing * Screen.devicePixelRatio)
rightMargin: Math.max(FishUI.Units.largeSpacing * 2, root.maxSpacing * Screen.devicePixelRatio)
topMargin: Math.max(FishUI.Units.largeSpacing * 2, root.maxSpacing * Screen.devicePixelRatio)
bottomMargin: Math.max(FishUI.Units.largeSpacing * 2, root.maxSpacing * Screen.devicePixelRatio)
}
property real size: height leftMargin: root.maxSpacing * 2
rightMargin: root.maxSpacing * 2
topMargin: root.maxSpacing * 2
bottomMargin: root.maxSpacing * 2
}
width: height width: height
height: width height: width

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

@ -83,11 +83,12 @@ Item {
id: mainLayout id: mainLayout
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: launcher.screenAvailableRect ? launcher.screenAvailableRect.x : 0 anchors.leftMargin: launcher.screenAvailableRect ? launcher.screenAvailableRect.x : 0
anchors.topMargin: launcher.screenAvailableRect ? launcher.screenAvailableRect.y + root.verticalSpacing * 4 : 0 anchors.topMargin: launcher.screenAvailableRect ? launcher.screenAvailableRect.y + root.maxSpacing * 2 : 0
anchors.rightMargin: launcher.screenRect.width - (launcher.screenAvailableRect.x + launcher.screenAvailableRect.width) anchors.rightMargin: launcher.screenRect.width - (launcher.screenAvailableRect.x + launcher.screenAvailableRect.width)
anchors.bottomMargin: launcher.screenRect.height - (launcher.screenAvailableRect.y + launcher.screenAvailableRect.height - root.verticalSpacing) anchors.bottomMargin: launcher.screenRect.height - (launcher.screenAvailableRect.y + launcher.screenAvailableRect.height - root.verticalSpacing)
spacing: root.verticalSpacing // spacing: root.verticalSpacing
spacing: 0
Item { Item {
id: searchItem id: searchItem

Loading…
Cancel
Save