Browse Source

Adjust margins and correctly vertical center buttons.

CURA-9793
Joey de l'Arago 2 years ago
parent
commit
491c501d8c

+ 2 - 0
resources/qml/PrintSetupSelector/Custom/CustomPrintSetup.qml

@@ -53,6 +53,7 @@ Item
             onClicked: menu.opened ? menu.close() : menu.open()
 
             anchors.right: profileWarningReset.left
+            anchors.rightMargin: UM.Theme.getSize("narrow_margin").width
             width: UM.Theme.getSize("print_setup_big_item").width - profileWarningReset.width
             height: textLabel.contentHeight + 2 * UM.Theme.getSize("narrow_margin").height
             hoverEnabled: true
@@ -157,6 +158,7 @@ Item
             id: profileWarningReset
             width: childrenRect.width
             anchors.right: parent.right
+            anchors.verticalCenter: parent.verticalCenter
             fullWarning: false
         }
 

+ 1 - 6
resources/qml/PrintSetupSelector/ProfileWarningReset.qml

@@ -91,11 +91,6 @@ Item
                         return catalog.i18nc("@info %1 is the name of a profile", "Recommended settings (for <b>%1</b>) were altered.").arg(profile_name);
                     }
                 }
-                PropertyChanges
-                {
-                    target: warningIcon
-                    color: UM.Theme.getColor("success")
-                }
             },
             State
             {
@@ -145,7 +140,7 @@ Item
     Item
     {
         id: buttonsSpacer
-        width: UM.Theme.getSize("narrow_margin").width
+        width: UM.Theme.getSize("default_margin").width
         anchors.right: compareAndSaveButton.left
     }