Browse Source

Align progress bar and save button better

So that they don't overlap with the now larger fonts and such.

Contributes to issue CURA-4149.
Ghostkeeper 7 years ago
parent
commit
6a4329c1a0
3 changed files with 7 additions and 6 deletions
  1. 0 1
      resources/qml/MonitorButton.qml
  2. 0 1
      resources/qml/SaveButton.qml
  3. 7 4
      resources/qml/Sidebar.qml

+ 0 - 1
resources/qml/MonitorButton.qml

@@ -81,7 +81,6 @@ Item
     }
 
     property bool activity: CuraApplication.platformActivity;
-    property int totalHeight: childrenRect.height + UM.Theme.getSize("default_margin").height
     property string fileBaseName
     property string statusText:
     {

+ 0 - 1
resources/qml/SaveButton.qml

@@ -18,7 +18,6 @@ Item {
     property var backend: CuraApplication.getBackend();
     property bool activity: CuraApplication.platformActivity;
 
-    property int totalHeight: childrenRect.height + UM.Theme.getSize("default_margin").height
     property string fileBaseName
     property string statusText:
     {

+ 7 - 4
resources/qml/Sidebar.qml

@@ -397,8 +397,8 @@ Rectangle
         width: parent.width
         height: UM.Theme.getSize("sidebar_lining").height
         color: UM.Theme.getColor("sidebar_lining")
-        anchors.bottom: saveButton.top
-        anchors.bottomMargin: UM.Theme.getSize("default_margin").height
+        anchors.bottom: printSpecs.top
+        anchors.bottomMargin: UM.Theme.getSize("default_margin").height * 2 + UM.Theme.getSize("progressbar").height + UM.Theme.getFont("default_bold").pixelSize
     }
 
     Rectangle
@@ -408,6 +408,7 @@ Rectangle
         anchors.bottom: parent.bottom
         anchors.leftMargin: UM.Theme.getSize("default_margin").width
         anchors.bottomMargin: UM.Theme.getSize("default_margin").height
+        height: childrenRect.height
 
         UM.TooltipArea
         {
@@ -517,7 +518,8 @@ Rectangle
     {
         id: saveButton
         implicitWidth: base.width
-        implicitHeight: totalHeight
+        anchors.top: footerSeparator.bottom
+        anchors.topMargin: UM.Theme.getSize("default_margin").height
         anchors.bottom: parent.bottom
         visible: !monitoringPrint
     }
@@ -526,7 +528,8 @@ Rectangle
     {
         id: monitorButton
         implicitWidth: base.width
-        implicitHeight: totalHeight
+        anchors.top: footerSeparator.bottom
+        anchors.topMargin: UM.Theme.getSize("default_margin").height
         anchors.bottom: parent.bottom
         visible: monitoringPrint
     }