Commit 35e69efd authored by m2ko's avatar m2ko

[scaling] Scaling of homescreen icons and applauncher

parent 1f908037
......@@ -32,7 +32,7 @@ import QtQuick.Controls.Styles.Nemo 1.0
GridView {
id: gridview
cellWidth: 115
cellWidth: parent.width/4
cellHeight: cellWidth + 30
width: Math.floor(parent.width / cellWidth) * cellWidth
cacheBuffer: gridview.contentHeight
......
......@@ -58,7 +58,7 @@ Item {
anchors.top: parent.bottom
width: gridview.width
height: childrenRect.height
cellWidth: 115
cellWidth: gridview.cellWidth
cellHeight: cellWidth + 30
Rectangle {
anchors.fill: parent
......@@ -79,7 +79,7 @@ Item {
width: parent.width
elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 18
font.pixelSize: gridview.cellWidth/10
color: 'white'
anchors {
left: parent.left
......@@ -206,7 +206,7 @@ Item {
top: parent.top
topMargin: 8
}
width: 100
width: gridview.cellWidth - gridview.cellWidth/10
height: width
asynchronous: true
......@@ -224,7 +224,7 @@ Item {
width: parent.width
elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 18
font.pixelSize: gridview.cellWidth/10
color: 'white'
anchors {
left: parent.left
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment