Adjust sizes in the custom print setup mode

Contributes to CURA-5941.
This commit is contained in:
Diego Prado Gesto 2018-12-05 13:05:22 +01:00
parent cdb8020029
commit 034b1660f7
3 changed files with 8 additions and 11 deletions

View file

@ -11,9 +11,7 @@ import Cura 1.0 as Cura
Item
{
id: customPrintSetup
// TODO: Hardcoded now but UX has to decide about the height of this item
height: 480
height: childrenRect.height + padding
property real padding: UM.Theme.getSize("default_margin").width
property bool multipleExtruders: extrudersModel.count > 1
@ -93,16 +91,15 @@ Item
Rectangle
{
height: UM.Theme.getSize("print_setup_widget").height
anchors
{
top: tabBar.visible ? tabBar.bottom : globalProfileRow.bottom
top: tabBar.bottom
left: parent.left
leftMargin: parent.padding
right: parent.right
rightMargin: parent.padding
bottom: parent.bottom
topMargin: -UM.Theme.getSize("default_lining").width
bottomMargin: -UM.Theme.getSize("default_lining").width
}
z: tabBar.z - 1
// Don't show the border when only one extruder

View file

@ -150,7 +150,8 @@ Item
{
id: buttonsSeparator
anchors.top: contents.bottom
// The buttonsSeparator is inside the contents. This is to avoid a double line in the bottom
anchors.bottom: contents.bottom
width: parent.width
height: UM.Theme.getSize("default_lining").height
color: UM.Theme.getColor("lining")
@ -162,10 +163,9 @@ Item
property real padding: UM.Theme.getSize("default_margin").width
height: childrenRect.height + 2 * padding
// The buttonsSeparator is inside the buttonRow. This is to avoid some weird behaviours with the scroll bar.
anchors
{
top: buttonsSeparator.top
top: buttonsSeparator.bottom
left: parent.left
right: parent.right
}

View file

@ -369,7 +369,7 @@
"account_button": [12, 3],
"print_setup_widget": [38.0, 42.0],
"print_setup_widget": [38.0, 30.0],
"print_setup_mode_toggle": [0.0, 2.0],
"print_setup_item": [0.0, 2.0],
"print_setup_extruder_box": [0.0, 6.0],