Remove "Sync" button

CURA-4211
This commit is contained in:
Lipu Fei 2017-09-06 12:17:40 +02:00
parent e15a96263d
commit fc7207e77e
3 changed files with 0 additions and 72 deletions

View file

@ -47,71 +47,6 @@ Column
color: UM.Theme.getColor("text")
visible: extruderSelectionRow.visible
}
Button
{
id: syncMachineButton
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
text: catalog.i18nc("@button:action", "Sync")
visible: extruderSelectionRow.visible
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
enabled: printerConnected
onClicked:
{
CuraApplication.startSyncingConfigurationFromPrinter();
}
style: ButtonStyle
{
background: Rectangle
{
implicitWidth: UM.Theme.getSize("button").width * 1.1
implicitHeight: UM.Theme.getSize("sidebar_tabs").height / 3
color: "transparent"
}
label: Item
{
implicitWidth: UM.Theme.getSize("button").width * 1.1
implicitHeight: UM.Theme.getSize("sidebar_tabs").height / 3
Label
{
id: labelText
anchors.left: parent.left
anchors.leftMargin: UM.Theme.getSize("default_lining").width
anchors.right: downArrow.left
anchors.rightMargin: UM.Theme.getSize("default_margin").width / 2
anchors.top: parent.top
text: control.text
font: UM.Theme.getFont("default")
color: control.hovered ? UM.Theme.getColor("sync_button_text_hovered") : UM.Theme.getColor("sync_button_text")
elide: Text.ElideRight;
verticalAlignment: Text.AlignVCenter;
}
UM.RecolorImage
{
id: downArrow
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_lining").width * 2
anchors.top: labelText.top
anchors.topMargin: UM.Theme.getSize("default_margin").height / 3
source: UM.Theme.getIcon("arrow_bottom")
width: UM.Theme.getSize("standard_arrow").width
height: UM.Theme.getSize("standard_arrow").height
sourceSize.width: width + 5
sourceSize.height: width + 5
color: control.hovered ? UM.Theme.getColor("sync_button_text_hovered") : UM.Theme.getColor("sync_button_text")
}
}
}
}
}
Item