Apply screenScaleFactor to Cura Connect UI

Any pixel size specified in QML should not either use UM.Theme.getSize(), or use screenScaleFactor to make sure the pixel size is as intended on OSX, Windows and Linux regardless of display DPI.

Contributes to CURA-4376
This commit is contained in:
fieldOfView 2017-09-28 15:38:29 +02:00 committed by Jaime van Kessel
parent a7d06ff866
commit 940a8a44c8
6 changed files with 23 additions and 23 deletions

View file

@ -8,8 +8,8 @@ import Cura 1.0 as Cura
Rectangle
{
id: base
width: 250
height: 250
width: 250 * screenScaleFactor
height: 250 * screenScaleFactor
signal clicked()
MouseArea
{
@ -19,8 +19,8 @@ Rectangle
Rectangle
{
// TODO: Actually add UM icon / picture
width: 100
height: 100
width: 100 * screenScaleFactor
height: 100 * screenScaleFactor
border.width: UM.Theme.getSize("default_lining").width
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
@ -47,7 +47,7 @@ Rectangle
anchors.bottom: parent.bottom
anchors.bottomMargin: UM.Theme.getSize("default_margin").height
font: UM.Theme.getFont("default")
height:10
height:10 * screenScaleFactor
anchors.horizontalCenter: parent.horizontalCenter
}
}