Browse Source

Layout improvements

CURA-3221
Jaime van Kessel 8 years ago
parent
commit
af21146fef
1 changed files with 21 additions and 14 deletions
  1. 21 14
      resources/qml/DiscardOrKeepProfileChangesDialog.qml

+ 21 - 14
resources/qml/DiscardOrKeepProfileChangesDialog.qml

@@ -27,25 +27,36 @@ UM.Dialog
     Column
     {
         anchors.fill: parent
+        spacing: UM.Theme.getSize("default_margin").width
 
         UM.I18nCatalog
         {
             id: catalog;
             name:"cura"
         }
-        Label
+
+        Row
         {
-            text: "You have customized some default profile settings. Would you like to keep or discard those settings?"
+            height: childrenRect.height
             anchors.margins: UM.Theme.getSize("default_margin").width
             anchors.left: parent.left
             anchors.right: parent.right
-            font: UM.Theme.getFont("default_bold")
-            wrapMode: Text.WordWrap
-        }
-        Item // Spacer
-        {
-            height: UM.Theme.getSize("default_margin").height
-            width: UM.Theme.getSize("default_margin").width
+            spacing: UM.Theme.getSize("default_margin").width
+            UM.RecolorImage
+            {
+                source: UM.Theme.getIcon("star")
+                width : 30
+                height: width
+                color: UM.Theme.getColor("setting_control_button")
+            }
+
+            Label
+            {
+                text: "You have customized some default profile settings.\nWould you like to keep or discard those settings?"
+                anchors.margins: UM.Theme.getSize("default_margin").width
+                font: UM.Theme.getFont("default_bold")
+                wrapMode: Text.WordWrap
+            }
         }
 
         TableView
@@ -118,15 +129,11 @@ UM.Dialog
             model: base.changesModel
         }
 
-        Item // Spacer
-        {
-            height: UM.Theme.getSize("default_margin").height
-            width: UM.Theme.getSize("default_margin").width
-        }
         Row
         {
             anchors.right: parent.right
             anchors.rightMargin: UM.Theme.getSize("default_margin").width
+            spacing: UM.Theme.getSize("default_margin").width
             Button
             {
                 text: catalog.i18nc("@action:button", "Keep");