Move a few hardcoded sizes to the theme

CURA-5785
This commit is contained in:
Jaime van Kessel 2018-11-14 13:55:39 +01:00
parent fcfe95c7d0
commit b589920f53
2 changed files with 6 additions and 7 deletions

View file

@ -53,9 +53,8 @@ Item
{
id: machineSelection
z: openFileButtonBackground.z - 1
Layout.minimumWidth: 240
Layout.maximumWidth: 240
Layout.minimumWidth: UM.Theme.getSize("machine_selector_widget").width
Layout.maximumWidth: UM.Theme.getSize("machine_selector_widget").width
Layout.fillWidth: true
Layout.fillHeight: true
}
@ -90,8 +89,8 @@ Item
onShowTooltip: prepareMenu.showTooltip(item, location, text)
onHideTooltip: prepareMenu.hideTooltip()
Layout.minimumWidth: 460
Layout.maximumWidth: 460
Layout.minimumWidth: UM.Theme.getSize("print_setup_widget").width
Layout.maximumWidth: UM.Theme.getSize("print_setup_widget").width
Layout.fillWidth: true
Layout.fillHeight: true
}