mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 21:15:56 +08:00
Switch material and print core
CURA-4147
This commit is contained in:
parent
b58fb0d05d
commit
2d0a4d443d
@ -160,46 +160,6 @@ Column
|
|||||||
visible: !extruderSelectionRow.visible
|
visible: !extruderSelectionRow.visible
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print core row
|
|
||||||
Item
|
|
||||||
{
|
|
||||||
id: printCoreRow
|
|
||||||
height: UM.Theme.getSize("sidebar_setup").height
|
|
||||||
visible: Cura.MachineManager.hasVariants && !sidebar.monitoringPrint && !sidebar.hideSettings
|
|
||||||
|
|
||||||
anchors
|
|
||||||
{
|
|
||||||
left: parent.left
|
|
||||||
leftMargin: UM.Theme.getSize("default_margin").width
|
|
||||||
right: parent.right
|
|
||||||
rightMargin: UM.Theme.getSize("default_margin").width
|
|
||||||
}
|
|
||||||
|
|
||||||
Text
|
|
||||||
{
|
|
||||||
id: printCoreLabel
|
|
||||||
text: Cura.MachineManager.activeDefinitionVariantsName;
|
|
||||||
width: parent.width * 0.45 - UM.Theme.getSize("default_margin").width
|
|
||||||
font: UM.Theme.getFont("default");
|
|
||||||
color: UM.Theme.getColor("text");
|
|
||||||
}
|
|
||||||
|
|
||||||
ToolButton {
|
|
||||||
id: printCoreSelection
|
|
||||||
text: Cura.MachineManager.activeVariantName
|
|
||||||
tooltip: Cura.MachineManager.activeVariantName;
|
|
||||||
visible: Cura.MachineManager.hasVariants
|
|
||||||
|
|
||||||
height: UM.Theme.getSize("setting_control").height
|
|
||||||
width: parent.width * 0.7 + UM.Theme.getSize("default_margin").width
|
|
||||||
anchors.right: parent.right
|
|
||||||
style: UM.Theme.styles.sidebar_header_button
|
|
||||||
activeFocusOnPress: true;
|
|
||||||
|
|
||||||
menu: NozzleMenu { extruderIndex: base.currentExtruderIndex }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Material Row
|
// Material Row
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
@ -256,6 +216,46 @@ Column
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Print core row
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
id: printCoreRow
|
||||||
|
height: UM.Theme.getSize("sidebar_setup").height
|
||||||
|
visible: Cura.MachineManager.hasVariants && !sidebar.monitoringPrint && !sidebar.hideSettings
|
||||||
|
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
left: parent.left
|
||||||
|
leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
right: parent.right
|
||||||
|
rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
}
|
||||||
|
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
id: printCoreLabel
|
||||||
|
text: Cura.MachineManager.activeDefinitionVariantsName;
|
||||||
|
width: parent.width * 0.45 - UM.Theme.getSize("default_margin").width
|
||||||
|
font: UM.Theme.getFont("default");
|
||||||
|
color: UM.Theme.getColor("text");
|
||||||
|
}
|
||||||
|
|
||||||
|
ToolButton {
|
||||||
|
id: printCoreSelection
|
||||||
|
text: Cura.MachineManager.activeVariantName
|
||||||
|
tooltip: Cura.MachineManager.activeVariantName;
|
||||||
|
visible: Cura.MachineManager.hasVariants
|
||||||
|
|
||||||
|
height: UM.Theme.getSize("setting_control").height
|
||||||
|
width: parent.width * 0.7 + UM.Theme.getSize("default_margin").width
|
||||||
|
anchors.right: parent.right
|
||||||
|
style: UM.Theme.styles.sidebar_header_button
|
||||||
|
activeFocusOnPress: true;
|
||||||
|
|
||||||
|
menu: NozzleMenu { extruderIndex: base.currentExtruderIndex }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Material info row
|
// Material info row
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user