mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add Toolbox shortcut to the TopHeader and align the stage tabs to the
center. Contributes to CURA-5784.
This commit is contained in:
parent
075a9a161f
commit
41add97b13
4 changed files with 46 additions and 21 deletions
|
|
@ -33,15 +33,19 @@ Rectangle
|
|||
|
||||
Row
|
||||
{
|
||||
id: stagesMenuContainer
|
||||
anchors.left: logo.right
|
||||
anchors.leftMargin: UM.Theme.getSize("topheader_logo_right_margin").width
|
||||
id: stagesListContainer
|
||||
|
||||
anchors
|
||||
{
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
}
|
||||
spacing: UM.Theme.getSize("default_margin").width
|
||||
|
||||
// The topheader is dynamically filled with all available stages
|
||||
Repeater
|
||||
{
|
||||
id: stagesMenu
|
||||
id: stagesHeader
|
||||
|
||||
model: UM.StageModel { }
|
||||
|
||||
|
|
@ -63,4 +67,18 @@ Rectangle
|
|||
|
||||
ExclusiveGroup { id: topheaderMenuGroup }
|
||||
}
|
||||
|
||||
// Shortcut button to quick access the Toolbox
|
||||
Button
|
||||
{
|
||||
id: toolboxShortcutButton
|
||||
text: catalog.i18nc("@action:button", "Toolbox")
|
||||
anchors
|
||||
{
|
||||
right: parent.right
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
}
|
||||
style: UM.Theme.styles.topheader_tab
|
||||
action: Cura.Actions.browsePackages
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue