mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:19:01 +08:00
Make the width of the PreviewMenu headers dynamic
CURA-8011
This commit is contained in:
parent
9c49baa9ce
commit
1a273714a3
@ -43,7 +43,7 @@ Item
|
||||
{
|
||||
id: viewsSelector
|
||||
height: parent.height
|
||||
width: UM.Theme.getSize("views_selector").width
|
||||
width: Math.max(Math.round((parent.width - printSetupSelectorItem.width) / 3), UM.Theme.getSize("views_selector").width)
|
||||
headerCornerSide: Cura.RoundedRectangle.Direction.Left
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ Item
|
||||
{
|
||||
id: viewPanel
|
||||
height: parent.height
|
||||
width: source != "" ? (previewMenu.width - viewsSelector.width - printSetupSelectorItem.width - 2 * (UM.Theme.getSize("wide_margin").width + UM.Theme.getSize("default_lining").width)) : 0
|
||||
width: source != "" ? (previewMenu.width - viewsSelector.width - printSetupSelectorItem.width) : 0
|
||||
source: UM.Controller.activeView != null && UM.Controller.activeView.stageMenuComponent != null ? UM.Controller.activeView.stageMenuComponent : ""
|
||||
}
|
||||
|
||||
|
@ -504,7 +504,7 @@
|
||||
"machine_selector_widget_content": [25.0, 32.0],
|
||||
"machine_selector_icon": [2.5, 2.5],
|
||||
|
||||
"views_selector": [23.0, 4.0],
|
||||
"views_selector": [16.0, 4.0],
|
||||
|
||||
"printer_type_label": [3.5, 1.5],
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user