mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 03:09:04 +08:00
Add header for configuration selector
It currently always says 'Custom', but we will want to make that dynamic at some point. Contributes to issue CURA-5876.
This commit is contained in:
parent
30b20b4aa5
commit
7a210087ff
@ -12,6 +12,10 @@ import UM 1.2 as UM
|
|||||||
import Cura 1.0 as Cura
|
import Cura 1.0 as Cura
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Menu that allows you to select the configuration of the current printer, such
|
||||||
|
* as the nozzle sizes and materials in each extruder.
|
||||||
|
*/
|
||||||
Cura.ExpandableComponent
|
Cura.ExpandableComponent
|
||||||
{
|
{
|
||||||
id: base
|
id: base
|
||||||
@ -99,10 +103,27 @@ Cura.ExpandableComponent
|
|||||||
width: base.width - 2 * UM.Theme.getSize("default_margin").width
|
width: base.width - 2 * UM.Theme.getSize("default_margin").width
|
||||||
height: 200
|
height: 200
|
||||||
|
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
id: customHeader
|
||||||
|
text: catalog.i18nc("@header", "Custom")
|
||||||
|
font: UM.Theme.getFont("large")
|
||||||
|
color: UM.Theme.getColor("text")
|
||||||
|
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
top: parent.top
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TabBar
|
TabBar
|
||||||
{
|
{
|
||||||
id: tabBar
|
id: tabBar
|
||||||
onCurrentIndexChanged: Cura.ExtruderManager.setActiveExtruderIndex(currentIndex)
|
onCurrentIndexChanged: Cura.ExtruderManager.setActiveExtruderIndex(currentIndex)
|
||||||
|
anchors.top: customHeader.bottom
|
||||||
|
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 50
|
height: 50
|
||||||
Repeater
|
Repeater
|
||||||
|
Loading…
x
Reference in New Issue
Block a user