moved manage packages button inside the tabBar and adjusted styling

This commit is contained in:
10r3n20 2021-11-16 14:02:07 +01:00
parent 0e646a97f2
commit 4c6441f65e
3 changed files with 17 additions and 21 deletions

View file

@ -75,24 +75,11 @@ Window
Layout.preferredWidth: parent.width
Layout.preferredHeight: childrenRect.height
ManagePackagesButton
{
id: managePackagesButton
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_margin").width
onClicked:
{
content.source = "ManagedPackages.qml"
}
}
// Page selection.
TabBar
{
id: pageSelectionTabBar
anchors.right: managePackagesButton.left
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_margin").width
height: UM.Theme.getSize("button_icon").height
spacing: 0
@ -109,6 +96,10 @@ Window
text: catalog.i18nc("@button", "Materials")
onClicked: content.source = "Materials.qml"
}
ManagePackagesButton
{
onClicked: content.source = "ManagedPackages.qml"
}
}
}