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 ...@@ -32,7 +32,7 @@ import QtQuick.Controls.Styles.Nemo 1.0
GridView { GridView {
id: gridview id: gridview
cellWidth: 115 cellWidth: parent.width/4
cellHeight: cellWidth + 30 cellHeight: cellWidth + 30
width: Math.floor(parent.width / cellWidth) * cellWidth width: Math.floor(parent.width / cellWidth) * cellWidth
cacheBuffer: gridview.contentHeight cacheBuffer: gridview.contentHeight
......
...@@ -58,7 +58,7 @@ Item { ...@@ -58,7 +58,7 @@ Item {
anchors.top: parent.bottom anchors.top: parent.bottom
width: gridview.width width: gridview.width
height: childrenRect.height height: childrenRect.height
cellWidth: 115 cellWidth: gridview.cellWidth
cellHeight: cellWidth + 30 cellHeight: cellWidth + 30
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
...@@ -79,7 +79,7 @@ Item { ...@@ -79,7 +79,7 @@ Item {
width: parent.width width: parent.width
elide: Text.ElideRight elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
font.pixelSize: 18 font.pixelSize: gridview.cellWidth/10
color: 'white' color: 'white'
anchors { anchors {
left: parent.left left: parent.left
...@@ -206,7 +206,7 @@ Item { ...@@ -206,7 +206,7 @@ Item {
top: parent.top top: parent.top
topMargin: 8 topMargin: 8
} }
width: 100 width: gridview.cellWidth - gridview.cellWidth/10
height: width height: width
asynchronous: true asynchronous: true
...@@ -224,7 +224,7 @@ Item { ...@@ -224,7 +224,7 @@ Item {
width: parent.width width: parent.width
elide: Text.ElideRight elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
font.pixelSize: 18 font.pixelSize: gridview.cellWidth/10
color: 'white' color: 'white'
anchors { anchors {
left: parent.left 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