mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 23:16:06 +08:00
Remove infill icon changing density on change slider
Suggestion from @lorenzoromagnoli CURA-9793
This commit is contained in:
parent
261adf06e7
commit
f4e7829e0b
@ -18,39 +18,6 @@ Item
|
|||||||
|
|
||||||
property real labelColumnWidth: Math.round(width / 3)
|
property real labelColumnWidth: Math.round(width / 3)
|
||||||
|
|
||||||
// Create a binding to update the icon when the infill density changes
|
|
||||||
Binding
|
|
||||||
{
|
|
||||||
target: infillRowTitle
|
|
||||||
property: "source"
|
|
||||||
value:
|
|
||||||
{
|
|
||||||
const infill_steps = parseInt(infillSteps.properties.value);
|
|
||||||
if (infill_steps != 0)
|
|
||||||
{
|
|
||||||
return UM.Theme.getIcon("InfillGradual")
|
|
||||||
}
|
|
||||||
|
|
||||||
const density = parseInt(infillDensity.properties.value)
|
|
||||||
if (density == 0)
|
|
||||||
{
|
|
||||||
return UM.Theme.getIcon("Infill0");
|
|
||||||
}
|
|
||||||
else if (density < 40)
|
|
||||||
{
|
|
||||||
return UM.Theme.getIcon("Infill3");
|
|
||||||
}
|
|
||||||
else if (density < 90)
|
|
||||||
{
|
|
||||||
return UM.Theme.getIcon("Infill2");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return UM.Theme.getIcon("Infill100");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Here are the elements that are shown in the left column
|
// Here are the elements that are shown in the left column
|
||||||
Cura.IconWithText
|
Cura.IconWithText
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user