Change font style for active material in preferences

CURA-5747
This commit is contained in:
Aleksei S 2018-10-03 10:30:48 +02:00
parent b412a259af
commit 51e7b6c388

View File

@ -41,6 +41,15 @@ Rectangle
anchors.left: swatch.right
anchors.verticalCenter: materialSlot.verticalCenter
anchors.leftMargin: UM.Theme.getSize("narrow_margin").width
font.italic:
{
var selected_material = Cura.MachineManager.currentRootMaterialId[Cura.ExtruderManager.activeExtruderIndex]
if(selected_material == material.root_material_id)
{
return true
}
return false
}
}
MouseArea
{