Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2021-07-08 19:00:35 +0300
committerGhostkeeper <rubend@tutanota.com>2021-07-08 19:00:35 +0300
commit41642a35ffd885a6260d2dc766813884ea748bde (patch)
tree7c60b8695b589e94d6656c8bb02a1a1586b01a4f /plugins
parentffa89bb1a16380c41e05846b7bd2073d6d50f00e (diff)
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/PrepareStage/PrepareMenu.qml23
1 files 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
@@ -108,13 +108,30 @@ Item
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
+ }
+ }
}
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