Add basic tab bar to select pages

Contributes to issue CURA-8557.
This commit is contained in:
Ghostkeeper 2021-10-28 17:49:32 +02:00
parent c31665f069
commit 38b7f17615
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -66,6 +66,30 @@ Window
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.
{
Layout.preferredWidth: parent.width