mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Refactor the code a bit more to better align the components in the
recommended mode. Contributes to CURA-5941.
This commit is contained in:
parent
85b34d6005
commit
990c653af4
9 changed files with 1134 additions and 1242 deletions
|
@ -10,7 +10,7 @@ import Cura 1.0 as Cura
|
|||
|
||||
RowLayout
|
||||
{
|
||||
Cura.IconLabel
|
||||
Cura.IconWithText
|
||||
{
|
||||
source: UM.Theme.getIcon("category_layer_height")
|
||||
text: Cura.MachineManager.activeStack ? Cura.MachineManager.activeQualityOrQualityChangesName + " " + layerHeight.properties.value + "mm" : ""
|
||||
|
@ -24,7 +24,7 @@ RowLayout
|
|||
}
|
||||
}
|
||||
|
||||
Cura.IconLabel
|
||||
Cura.IconWithText
|
||||
{
|
||||
source: UM.Theme.getIcon("category_infill")
|
||||
text: Cura.MachineManager.activeStack ? parseInt(infillDensity.properties.value) + "%" : "0%"
|
||||
|
@ -38,7 +38,7 @@ RowLayout
|
|||
}
|
||||
}
|
||||
|
||||
Cura.IconLabel
|
||||
Cura.IconWithText
|
||||
{
|
||||
source: UM.Theme.getIcon("category_support")
|
||||
text: supportEnabled.properties.value == "True" ? enabledText : disabledText
|
||||
|
@ -53,7 +53,7 @@ RowLayout
|
|||
}
|
||||
}
|
||||
|
||||
Cura.IconLabel
|
||||
Cura.IconWithText
|
||||
{
|
||||
source: UM.Theme.getIcon("category_adhesion")
|
||||
text: platformAdhesionType.properties.value != "skirt" && platformAdhesionType.properties.value != "none" ? enabledText : disabledText
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue