mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 10:56:10 +08:00
Add basic tab bar to select pages
Contributes to issue CURA-8557.
This commit is contained in:
parent
c31665f069
commit
38b7f17615
@ -66,6 +66,30 @@ Window
|
|||||||
text: catalog.i18nc("@header", "Install Plugins")
|
text: catalog.i18nc("@header", "Install Plugins")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
Layout.preferredWidth: parent.width
|
||||||
|
Layout.preferredHeight: childrenRect.height
|
||||||
|
|
||||||
|
TabBar //Page selection.
|
||||||
|
{
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
|
TabButton
|
||||||
|
{
|
||||||
|
width: implicitWidth
|
||||||
|
text: catalog.i18nc("@button", "Plug-ins")
|
||||||
|
}
|
||||||
|
TabButton
|
||||||
|
{
|
||||||
|
width: implicitWidth
|
||||||
|
text: catalog.i18nc("@button", "Materials")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle //Page contents.
|
Rectangle //Page contents.
|
||||||
{
|
{
|
||||||
Layout.preferredWidth: parent.width
|
Layout.preferredWidth: parent.width
|
||||||
|
Loading…
x
Reference in New Issue
Block a user