mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Modify the header item of the view selector.
This commit is contained in:
parent
f3bf20ca1b
commit
68c96a2577
1 changed files with 28 additions and 8 deletions
|
|
@ -37,15 +37,35 @@ Cura.ExpandableComponent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
headerItem: Label
|
headerItem: Item
|
||||||
{
|
{
|
||||||
text: viewSelector.activeView ? viewSelector.activeView.name : ""
|
Label
|
||||||
verticalAlignment: Text.AlignVCenter
|
{
|
||||||
height: parent.height
|
id: title
|
||||||
elide: Text.ElideRight
|
text: catalog.i18nc("@button", "View types")
|
||||||
font: UM.Theme.getFont("default")
|
verticalAlignment: Text.AlignVCenter
|
||||||
color: UM.Theme.getColor("text")
|
height: parent.height
|
||||||
renderType: Text.NativeRendering
|
elide: Text.ElideRight
|
||||||
|
font: UM.Theme.getFont("default")
|
||||||
|
color: UM.Theme.getColor("text_medium")
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
}
|
||||||
|
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: viewSelector.activeView ? viewSelector.activeView.name : ""
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
left: title.right
|
||||||
|
leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
}
|
||||||
|
height: parent.height
|
||||||
|
elide: Text.ElideRight
|
||||||
|
font: UM.Theme.getFont("default")
|
||||||
|
color: UM.Theme.getColor("text")
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
popupItem: Column
|
popupItem: Column
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue