diff options
author | Jaime van Kessel <nallath@gmail.com> | 2018-11-14 15:55:39 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2018-11-14 15:55:39 +0300 |
commit | b589920f53a7192bd620e55e7d4ec87d22bbde7d (patch) | |
tree | ff6b189c584a2eeedb0c4de0335719010429f9f9 /plugins/PrepareStage/PrepareMenu.qml | |
parent | fcfe95c7d0a7217bd5793ee5e5148b835bae29c4 (diff) |
Move a few hardcoded sizes to the theme
CURA-5785
Diffstat (limited to 'plugins/PrepareStage/PrepareMenu.qml')
-rw-r--r-- | plugins/PrepareStage/PrepareMenu.qml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/PrepareStage/PrepareMenu.qml b/plugins/PrepareStage/PrepareMenu.qml index 78f9ced1e7..9507d786b2 100644 --- a/plugins/PrepareStage/PrepareMenu.qml +++ b/plugins/PrepareStage/PrepareMenu.qml @@ -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 } |