CURA-4870 Add line separator between machine selector and sync button

This commit is contained in:
Diego Prado Gesto 2018-03-07 22:49:27 +01:00
parent 3629c3959e
commit ae5f1c3408

View File

@ -88,12 +88,22 @@ Rectangle
MachineSelection { MachineSelection {
id: machineSelection id: machineSelection
width: base.width - configSelection.width width: base.width - configSelection.width - separator.width
height: UM.Theme.getSize("sidebar_header").height height: UM.Theme.getSize("sidebar_header").height
anchors.top: base.top anchors.top: base.top
anchors.left: parent.left anchors.left: parent.left
} }
Rectangle
{
id: separator
visible: configSelection.visible
width: visible ? Math.round(UM.Theme.getSize("sidebar_lining_thin").height / 2) : 0
height: UM.Theme.getSize("sidebar_header").height
color: UM.Theme.getColor("sidebar_lining_thin")
anchors.left: machineSelection.right
}
ConfigurationSelection { ConfigurationSelection {
id: configSelection id: configSelection
visible: printerConnected && !sidebar.monitoringPrint && !sidebar.hideSettings visible: printerConnected && !sidebar.monitoringPrint && !sidebar.hideSettings