From 41642a35ffd885a6260d2dc766813884ea748bde Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 8 Jul 2021 18:00:35 +0200 Subject: [PATCH] Add chevron to select where to load models from The chevron looks a little big now. No worries, we can fix that. Contributes to issue CURA-8008. --- plugins/PrepareStage/PrepareMenu.qml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/plugins/PrepareStage/PrepareMenu.qml b/plugins/PrepareStage/PrepareMenu.qml index 4e6c37961c..bf6b76360f 100644 --- a/plugins/PrepareStage/PrepareMenu.qml +++ b/plugins/PrepareStage/PrepareMenu.qml @@ -84,7 +84,7 @@ Item bottomPadding: topPadding height: UM.Theme.getSize("stage_menu").height - width: openFileIconContainer.width + leftPadding + rightPadding + width: leftPadding + openFileIconContainer.width + openFileChevronContainer.width + rightPadding onClicked: Cura.Actions.open.trigger() hoverEnabled: true @@ -105,6 +105,23 @@ Item height: UM.Theme.getSize("button_icon").height color: UM.Theme.getColor("icon") + sourceSize.height: height + } + } + Item + { + id: openFileChevronContainer + height: parent.height + width: UM.Theme.getSize("small_button_icon").width + + UM.RecolorImage + { + anchors.centerIn: parent + source: UM.Theme.getIcon("ChevronSingleDown") + width: UM.Theme.getSize("small_button_icon").width + height: UM.Theme.getSize("small_button_icon").height + color: UM.Theme.getColor("icon") + sourceSize.height: height } } @@ -113,8 +130,8 @@ Item background: Rectangle { id: background - height: UM.Theme.getSize("stage_menu").height - width: UM.Theme.getSize("stage_menu").height + height: parent.height + width: parent.width border.color: UM.Theme.getColor("lining") border.width: UM.Theme.getSize("default_lining").width