mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:35:58 +08:00
Modify the header item of the view selector.
This commit is contained in:
parent
f3bf20ca1b
commit
68c96a2577
@ -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…
x
Reference in New Issue
Block a user