mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06: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
1 changed files with 4 additions and 2 deletions
|
@ -40,6 +40,7 @@ Item
|
|||
id: tabBar
|
||||
anchors.top: header.bottom
|
||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||
visible: Cura.MachineManager.numberExtrudersEnabled > 1
|
||||
|
||||
currentIndex: Math.max(Cura.ExtruderManager.activeExtruderIndex, 0)
|
||||
|
||||
|
@ -86,8 +87,8 @@ Item
|
|||
height: childrenRect.height
|
||||
anchors.top: tabBar.bottom
|
||||
|
||||
radius: UM.Theme.getSize("default_radius").width
|
||||
border.width: UM.Theme.getSize("default_lining").width
|
||||
radius: tabBar.visible ? UM.Theme.getSize("default_radius").width : 0
|
||||
border.width: tabBar.visible ? UM.Theme.getSize("default_lining").width : 0
|
||||
border.color: UM.Theme.getColor("lining")
|
||||
color: UM.Theme.getColor("main_background")
|
||||
|
||||
|
@ -98,6 +99,7 @@ Item
|
|||
height: parent.radius
|
||||
anchors.top: parent.top
|
||||
color: UM.Theme.getColor("lining")
|
||||
visible: tabBar.visible
|
||||
Rectangle
|
||||
{
|
||||
anchors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue