mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -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
|
@ -62,14 +62,12 @@ Button
|
|||
spacing: UM.Theme.getSize("narrow_margin").width
|
||||
height: button.height
|
||||
//Left side icon. Only displayed if !isIconOnRightSide.
|
||||
UM.RecolorImage
|
||||
UM.ColorImage
|
||||
{
|
||||
id: buttonIconLeft
|
||||
source: ""
|
||||
height: visible ? button.iconSize : 0
|
||||
width: visible ? height : 0
|
||||
sourceSize.width: width
|
||||
sourceSize.height: height
|
||||
color: button.enabled ? (button.hovered ? button.textHoverColor : button.textColor) : button.textDisabledColor
|
||||
visible: source != "" && !button.isIconOnRightSide
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
@ -109,14 +107,12 @@ Button
|
|||
}
|
||||
|
||||
//Right side icon. Only displayed if isIconOnRightSide.
|
||||
UM.RecolorImage
|
||||
UM.ColorImage
|
||||
{
|
||||
id: buttonIconRight
|
||||
source: buttonIconLeft.source
|
||||
height: visible ? button.iconSize : 0
|
||||
width: visible ? height : 0
|
||||
sourceSize.width: width
|
||||
sourceSize.height: height
|
||||
color: buttonIconLeft.color
|
||||
visible: source != "" && button.isIconOnRightSide
|
||||
anchors.verticalCenter: buttonIconLeft.verticalCenter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue