mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:39:01 +08:00
Add a checkmark to indicate the selected material
As it used to have. Contributes to issue CURA-8640.
This commit is contained in:
parent
5a76cd1615
commit
e7de7bb3cc
@ -263,7 +263,18 @@ Cura.MenuItem
|
|||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
// Spacer
|
// 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
|
UM.Label
|
||||||
|
Loading…
x
Reference in New Issue
Block a user