Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfieldOfView <aldo@fieldofview.com>2017-09-25 23:07:12 +0300
committerfieldOfView <aldo@fieldofview.com>2017-09-25 23:07:12 +0300
commitc5fd0e6c8011db72b0c86fc08dcc564d53ba1f3a (patch)
tree0549d05e82465988fede77c7c279abf3c7754620 /plugins/3MFReader/WorkspaceDialog.qml
parent5e0052dcb6e7f7d5d0c66bf5ea51151b425ed8f0 (diff)
Use screenScaleFactor to consistently adapt sizes to display pixel ratio
Diffstat (limited to 'plugins/3MFReader/WorkspaceDialog.qml')
-rw-r--r--plugins/3MFReader/WorkspaceDialog.qml16
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/3MFReader/WorkspaceDialog.qml b/plugins/3MFReader/WorkspaceDialog.qml
index 05941530ca..84a5933185 100644
--- a/plugins/3MFReader/WorkspaceDialog.qml
+++ b/plugins/3MFReader/WorkspaceDialog.qml
@@ -12,11 +12,13 @@ UM.Dialog
{
title: catalog.i18nc("@title:window", "Open Project")
- width: 500
- height: 400
+ minimumWidth: 500 * screenScaleFactor
+ minumumHeight: 400 * screenScaleFactor
+ width: minimumWidth
+ height: minumumHeight
- property int comboboxHeight: 15
- property int spacerHeight: 10
+ property int comboboxHeight: 15 * screenScaleFactor
+ property int spacerHeight: 10 * screenScaleFactor
onClosing: manager.notifyClosed()
onVisibleChanged:
@@ -31,7 +33,7 @@ UM.Dialog
Item
{
anchors.fill: parent
- anchors.margins: 20
+ anchors.margins: 20 * screenScaleFactor
UM.I18nCatalog
{
@@ -59,7 +61,7 @@ UM.Dialog
Column
{
anchors.fill: parent
- spacing: 2
+ spacing: 2 * screenScaleFactor
Label
{
id: titleLabel
@@ -373,7 +375,7 @@ UM.Dialog
enabled: true
anchors.bottom: parent.bottom
anchors.right: ok_button.left
- anchors.rightMargin:2
+ anchors.rightMargin: 2 * screenScaleFactor
}
Button
{