Browse Source

CURA-4461 Add line separator when the build plate selector is visible

Diego Prado Gesto 7 years ago
parent
commit
a7beb142ff
1 changed files with 13 additions and 0 deletions
  1. 13 0
      resources/qml/SidebarHeader.qml

+ 13 - 0
resources/qml/SidebarHeader.qml

@@ -314,6 +314,19 @@ Column
         }
     }
 
+    //Buildplate row separator
+    Rectangle {
+        id: separator
+
+        anchors.leftMargin: UM.Theme.getSize("sidebar_margin").width
+        anchors.rightMargin: UM.Theme.getSize("sidebar_margin").width
+        anchors.horizontalCenter: parent.horizontalCenter
+        visible: buildplateRow.visible
+        width: parent.width - UM.Theme.getSize("sidebar_margin").width * 2
+        height: visible ? UM.Theme.getSize("sidebar_lining").height / 2 : 0
+        color: UM.Theme.getColor("sidebar_lining")
+    }
+
     //Buildplate row
     Item
     {