mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Move details plane caption to management page
This way the caption can be correctly aligned with the hamburger menu button CURA-8979
This commit is contained in:
parent
418f88a4da
commit
9ba44f1d30
4 changed files with 154 additions and 186 deletions
|
|
@ -68,6 +68,7 @@ UM.ManagementPage
|
|||
}
|
||||
|
||||
title: catalog.i18nc("@title:tab", "Materials")
|
||||
detailsPlaneCation: currentItem.name
|
||||
scrollviewCaption: catalog.i18nc("@label", "Materials compatible with active printer:") + `<br /><b>${Cura.MachineManager.activeMachine.name}</b>`
|
||||
|
||||
buttons: [
|
||||
|
|
@ -107,8 +108,13 @@ UM.ManagementPage
|
|||
}
|
||||
]
|
||||
|
||||
onHamburgeButtonClicked: menu.popup(content_item, content_item.width - menu.width, hamburger_button.height)
|
||||
|
||||
onHamburgeButtonClicked: {
|
||||
const hamburerButtonHeight = hamburger_button.height;
|
||||
menu.popup(hamburger_button, -menu.width + hamburger_button.width / 2, hamburger_button.height);
|
||||
// for some reason the height of the hamburger changes when opening the popup
|
||||
// reset height to initial heigt
|
||||
hamburger_button.height = hamburerButtonHeight;
|
||||
}
|
||||
listContent: ScrollView
|
||||
{
|
||||
id: materialScrollView
|
||||
|
|
@ -137,12 +143,14 @@ UM.ManagementPage
|
|||
}
|
||||
}
|
||||
|
||||
MaterialsDetailsPanel
|
||||
{
|
||||
id: materialDetailsPanel
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
Item
|
||||
{
|
||||
id: content_item
|
||||
anchors.fill: parent
|
||||
|
||||
Cura.Menu
|
||||
{
|
||||
id: menu
|
||||
|
|
@ -197,12 +205,6 @@ UM.ManagementPage
|
|||
}
|
||||
}
|
||||
|
||||
MaterialsDetailsPanel
|
||||
{
|
||||
id: materialDetailsPanel
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
// Dialogs
|
||||
Cura.MessageDialog
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue