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

@ -11,8 +11,8 @@ UM.Dialog
{
id: base;
minimumWidth: 500
minimumHeight: 140
minimumWidth: 500 * screenScaleFactor
minimumHeight: 140 * screenScaleFactor
maximumWidth: minimumWidth
maximumHeight: minimumHeight
width: minimumWidth
@ -31,7 +31,7 @@ UM.Dialog
anchors.topMargin: UM.Theme.getSize("default_margin").height
anchors.leftMargin: UM.Theme.getSize("default_margin").width
anchors.rightMargin: UM.Theme.getSize("default_margin").width
height: 50
height: 50 * screenScaleFactor
Label
{
@ -44,7 +44,7 @@ UM.Dialog
}
text: "Printer selection"
wrapMode: Text.Wrap
height: 20
height: 20 * screenScaleFactor
}
ComboBox
@ -54,7 +54,7 @@ UM.Dialog
textRole: "friendly_name"
width: parent.width
height: 40
height: 40 * screenScaleFactor
Behavior on height { NumberAnimation { duration: 100 } }
onActivated: