mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Replace RecolorImage
with ColorImage
CURA-8640
This commit is contained in:
parent
3de824e1a4
commit
45bc498c7f
64 changed files with 88 additions and 141 deletions
|
@ -15,7 +15,7 @@ Item
|
|||
property color materialColor
|
||||
property alias textColor: extruderNumberText.color
|
||||
property bool extruderEnabled: true
|
||||
property alias iconSize: mainIcon.sourceSize
|
||||
property var iconSize
|
||||
property string iconVariant: "medium"
|
||||
|
||||
Item
|
||||
|
@ -24,19 +24,21 @@ Item
|
|||
anchors.fill: parent
|
||||
layer.enabled: true // Prevent weird opacity effects.
|
||||
|
||||
UM.RecolorImage
|
||||
UM.ColorImage
|
||||
{
|
||||
anchors.fill: parent
|
||||
sourceSize: mainIcon.sourceSize
|
||||
width: mainIcon.sourceSize.width
|
||||
height: mainIcon.sourceSize.height
|
||||
|
||||
source: UM.Theme.getIcon("ExtruderColor", iconVariant)
|
||||
color: materialColor
|
||||
}
|
||||
UM.RecolorImage
|
||||
UM.ColorImage
|
||||
{
|
||||
id: mainIcon
|
||||
anchors.fill: parent
|
||||
sourceSize: UM.Theme.getSize("extruder_icon")
|
||||
width: UM.Theme.getSize("extruder_icon").width
|
||||
height: UM.Theme.getSize("extruder_icon").height
|
||||
|
||||
source: UM.Theme.getIcon("Extruder", iconVariant)
|
||||
color: extruderNumberText.color
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue