mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Remove "Sync" button
CURA-4211
This commit is contained in:
parent
e15a96263d
commit
fc7207e77e
3 changed files with 0 additions and 72 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue