mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 22:01:14 -07:00
Change font style for active material in preferences
CURA-5747
This commit is contained in:
parent
b412a259af
commit
51e7b6c388
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue