Replace RecolorImage with ColorImage

CURA-8640
This commit is contained in:
c.lamboo 2022-04-08 15:55:34 +02:00
parent 3de824e1a4
commit 45bc498c7f
64 changed files with 88 additions and 141 deletions

View file

@ -21,7 +21,7 @@ Button
color: parent.enabled ? (parent.hovered ? UM.Theme.getColor("monitor_card_hover") : "transparent") : UM.Theme.getColor("monitor_icon_disabled")
}
UM.RecolorImage
UM.ColorImage
{
id: icon
anchors

View file

@ -45,7 +45,7 @@ Item
radius: Math.floor(height / 2)
}
UM.RecolorImage
UM.ColorImage
{
id: buildplateIcon
anchors.centerIn: parent

View file

@ -75,13 +75,11 @@ Item
contentItem: Item
{
anchors.fill: parent
UM.RecolorImage
UM.ColorImage
{
anchors.centerIn: parent
width: 18 // TODO: Theme!
height: width // TODO: Theme!
sourceSize.width: width // TODO: Theme!
sourceSize.height: width // TODO: Theme!
color: UM.Theme.getColor("text")
source: UM.Theme.getIcon("ChevronSingleLeft")
}
@ -154,13 +152,11 @@ Item
contentItem: Item
{
anchors.fill: parent
UM.RecolorImage
UM.ColorImage
{
anchors.centerIn: parent
width: 18 // TODO: Theme!
height: width // TODO: Theme!
sourceSize.width: width // TODO: Theme!
sourceSize.height: width // TODO: Theme!
color: UM.Theme.getColor("text")
source: UM.Theme.getIcon("ChevronSingleRight")
}

View file

@ -27,7 +27,7 @@ Item
height: size
width: size
UM.RecolorImage
UM.ColorImage
{
id: icon
anchors.fill: parent

View file

@ -38,7 +38,7 @@ Item
}
UM.RecolorImage
UM.ColorImage
{
id: ultiBotImage
@ -46,18 +46,13 @@ Item
color: UM.Theme.getColor("monitor_placeholder_image")
height: printJobPreview.height
source: "../svg/ultibot.svg"
sourceSize
{
height: height
width: width
}
/* Since print jobs ALWAYS have an image url, we have to check if that image URL errors or
not in order to determine if we show the placeholder (ultibot) image instead. */
visible: printJob && previewImage.status == Image.Error
width: printJobPreview.width
}
UM.RecolorImage
UM.ColorImage
{
id: overlayIcon
anchors.centerIn: printJobPreview
@ -90,11 +85,6 @@ Item
}
return ""
}
sourceSize
{
height: height
width: width
}
visible: source != ""
width: 0.5 * printJobPreview.width
}

View file

@ -147,7 +147,7 @@ Item
color: UM.Theme.getColor("text_link")
text: catalog.i18nc("@label link to Connect and Cloud interfaces", "Manage printer")
}
UM.RecolorImage
UM.ColorImage
{
id: externalLinkIcon
anchors

View file

@ -40,7 +40,7 @@ Item
height: 18 * screenScaleFactor // TODO: Theme!
width: childrenRect.width
UM.RecolorImage
UM.ColorImage
{
id: externalLinkIcon
anchors.verticalCenter: manageQueueLabel.verticalCenter