Add a checkmark to indicate the selected material

As it used to have.

Contributes to issue CURA-8640.
This commit is contained in:
Ghostkeeper 2022-04-08 16:35:48 +02:00
parent 5a76cd1615
commit e7de7bb3cc
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -263,7 +263,18 @@ Cura.MenuItem
Item
{
// Spacer
width: UM.Theme.getSize("default_margin").width
width: UM.Theme.getSize("default_margin").width + (model.id === materialMenu.activeMaterialId ? 0 : UM.Theme.getSize("default_arrow").height)
}
//Checkmark, if the material is selected.
UM.RecolorImage
{
id: checkmark
visible: model.id === materialMenu.activeMaterialId
height: UM.Theme.getSize("default_arrow").height
width: height
source: UM.Theme.getIcon("Check", "low")
color: UM.Theme.getColor("setting_control_text")
}
UM.Label