Browse Source

Remove deprecated use of theme sizes from UM2 upgrades wizard

CURA-91
fieldOfView 9 years ago
parent
commit
b5c90d67d0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      resources/qml/WizardPages/SelectUpgradedPartsUM2.qml

+ 4 - 4
resources/qml/WizardPages/SelectUpgradedPartsUM2.qml

@@ -53,7 +53,7 @@ Item
     {
     {
         id: pageDescription
         id: pageDescription
         anchors.top: pageTitle.bottom
         anchors.top: pageTitle.bottom
-        anchors.topMargin: UM.Theme.sizes.default_margin.height
+        anchors.topMargin: UM.Theme.getSize("default_margin").height
         width: parent.width
         width: parent.width
         wrapMode: Text.WordWrap
         wrapMode: Text.WordWrap
         text: catalog.i18nc("@label","To assist you in having better default settings for your Ultimaker. Cura would like to know which upgrades you have in your machine:")
         text: catalog.i18nc("@label","To assist you in having better default settings for your Ultimaker. Cura would like to know which upgrades you have in your machine:")
@@ -64,10 +64,10 @@ Item
         id: pageCheckboxes
         id: pageCheckboxes
         height: childrenRect.height
         height: childrenRect.height
         anchors.left: parent.left
         anchors.left: parent.left
-        anchors.leftMargin: UM.Theme.sizes.default_margin.width
+        anchors.leftMargin: UM.Theme.getSize("default_margin").width
         anchors.top: pageDescription.bottom
         anchors.top: pageDescription.bottom
-        anchors.topMargin: UM.Theme.sizes.default_margin.height
-        width: parent.width - UM.Theme.sizes.default_margin.width
+        anchors.topMargin: UM.Theme.getSize("default_margin").height
+        width: parent.width - UM.Theme.getSize("default_margin").width
         CheckBox
         CheckBox
         {
         {
             id: hotendCheckBox
             id: hotendCheckBox