mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 00:39:01 +08:00
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:
parent
ffa89bb1a1
commit
41642a35ff
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user