mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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
1 changed files with 12 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue