mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 16:09:01 +08:00
Remove tabs and lining with single-extruder printers
There's no sense in showing tabs if the user can't use them. Contributes to issue CURA-5876.
This commit is contained in:
parent
0a6e420710
commit
82e66eeaa1
@ -40,6 +40,7 @@ Item
|
|||||||
id: tabBar
|
id: tabBar
|
||||||
anchors.top: header.bottom
|
anchors.top: header.bottom
|
||||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||||
|
visible: Cura.MachineManager.numberExtrudersEnabled > 1
|
||||||
|
|
||||||
currentIndex: Math.max(Cura.ExtruderManager.activeExtruderIndex, 0)
|
currentIndex: Math.max(Cura.ExtruderManager.activeExtruderIndex, 0)
|
||||||
|
|
||||||
@ -86,8 +87,8 @@ Item
|
|||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
anchors.top: tabBar.bottom
|
anchors.top: tabBar.bottom
|
||||||
|
|
||||||
radius: UM.Theme.getSize("default_radius").width
|
radius: tabBar.visible ? UM.Theme.getSize("default_radius").width : 0
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
border.width: tabBar.visible ? UM.Theme.getSize("default_lining").width : 0
|
||||||
border.color: UM.Theme.getColor("lining")
|
border.color: UM.Theme.getColor("lining")
|
||||||
color: UM.Theme.getColor("main_background")
|
color: UM.Theme.getColor("main_background")
|
||||||
|
|
||||||
@ -98,6 +99,7 @@ Item
|
|||||||
height: parent.radius
|
height: parent.radius
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
color: UM.Theme.getColor("lining")
|
color: UM.Theme.getColor("lining")
|
||||||
|
visible: tabBar.visible
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
anchors
|
anchors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user