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.
This commit is contained in:
Ghostkeeper 2021-07-08 18:00:35 +02:00
parent ffa89bb1a1
commit 41642a35ff
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -84,7 +84,7 @@ Item
bottomPadding: topPadding bottomPadding: topPadding
height: UM.Theme.getSize("stage_menu").height height: UM.Theme.getSize("stage_menu").height
width: openFileIconContainer.width + leftPadding + rightPadding width: leftPadding + openFileIconContainer.width + openFileChevronContainer.width + rightPadding
onClicked: Cura.Actions.open.trigger() onClicked: Cura.Actions.open.trigger()
hoverEnabled: true hoverEnabled: true
@ -105,6 +105,23 @@ Item
height: UM.Theme.getSize("button_icon").height height: UM.Theme.getSize("button_icon").height
color: UM.Theme.getColor("icon") 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 sourceSize.height: height
} }
} }
@ -113,8 +130,8 @@ Item
background: Rectangle background: Rectangle
{ {
id: background id: background
height: UM.Theme.getSize("stage_menu").height height: parent.height
width: UM.Theme.getSize("stage_menu").height width: parent.width
border.color: UM.Theme.getColor("lining") border.color: UM.Theme.getColor("lining")
border.width: UM.Theme.getSize("default_lining").width border.width: UM.Theme.getSize("default_lining").width