mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
Added color to recommended view support extruder by adding combobox_color style. CURA-2767
This commit is contained in:
parent
c27219b1c4
commit
ef6e90283e
2 changed files with 84 additions and 1 deletions
|
|
@ -290,6 +290,12 @@ Item
|
|||
id: supportExtruderCombobox
|
||||
visible: (supportEnabled.properties.value == "True") && (machineExtruderCount.properties.value > 1)
|
||||
model: extruderModel
|
||||
property string color:
|
||||
{
|
||||
var model_color = extruderModel.get(currentIndex).color;
|
||||
return (model_color) ? model_color : "";
|
||||
}
|
||||
|
||||
textRole: 'text' // this solves that the combobox isn't populated in the first time Cura is started
|
||||
|
||||
anchors.top: enableSupportCheckBox.bottom
|
||||
|
|
@ -320,7 +326,7 @@ Item
|
|||
}
|
||||
}
|
||||
|
||||
style: UM.Theme.styles.combobox
|
||||
style: UM.Theme.styles.combobox_color
|
||||
enabled: base.settingsEnabled
|
||||
property alias _hovered: supportExtruderMouseArea.containsMouse
|
||||
|
||||
|
|
@ -347,6 +353,9 @@ Item
|
|||
base.hideTooltip();
|
||||
}
|
||||
}
|
||||
|
||||
// color rectangle
|
||||
|
||||
}
|
||||
|
||||
Label
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue