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

@ -33,7 +33,7 @@ UM.Dialog
spacing: UM.Theme.getSize("default_margin").width
leftPadding: UM.Theme.getSize("narrow_margin").width
UM.RecolorImage
UM.ColorImage
{
id: icon
width: UM.Theme.getSize("marketplace_large_icon").width

View file

@ -46,7 +46,7 @@ Item
height: UM.Theme.getSize("action_button").height
width: childrenRect.width
UM.RecolorImage
UM.ColorImage
{
id: busyIndicator
visible: parent.visible

View file

@ -33,7 +33,7 @@ TabButton
visible: root.hovered
}
UM.RecolorImage
UM.ColorImage
{
id: icon

View file

@ -251,7 +251,7 @@ Window
margins: UM.Theme.getSize("default_margin").width
}
spacing: UM.Theme.getSize("default_margin").width
UM.RecolorImage
UM.ColorImage
{
id: bannerIcon
source: UM.Theme.getIcon("Plugin")

View file

@ -20,7 +20,7 @@ Rectangle
color: UM.Theme.getColor("action_panel_secondary")
// Icon
UM.RecolorImage
UM.ColorImage
{
id: onboardingIcon
anchors

View file

@ -47,12 +47,10 @@ Item
sourceSize.width: width
}
UM.RecolorImage
UM.ColorImage
{
visible: !parent.packageHasIcon
anchors.fill: parent
sourceSize.height: height
sourceSize.width: width
color: UM.Theme.getColor("text")
source:
{
@ -123,7 +121,7 @@ Item
Layout.preferredWidth: UM.Theme.getSize("card_tiny_icon").width + 2 * padding
Layout.preferredHeight: UM.Theme.getSize("card_tiny_icon").width + 2 * padding
contentItem: UM.RecolorImage
contentItem: UM.ColorImage
{
source: UM.Theme.getIcon("LinkExternal")
color: UM.Theme.getColor("icon")

View file

@ -46,7 +46,7 @@ Rectangle
// But we re-use the package page for the manage plugins as well. The one user that doesn't see
// the num downloads is an acceptable "sacrifice" to make this easy to fix.
visible: packageData.downloadCount != "0"
UM.RecolorImage
UM.ColorImage
{
id: downloadsIcon
width: UM.Theme.getSize("card_tiny_icon").width

View file

@ -213,7 +213,7 @@ ListView
status: UM.StatusIcon.Status.ERROR
visible: false
}
UM.RecolorImage
UM.ColorImage
{
id: loadMoreIcon
anchors.fill: parent

View file

@ -32,7 +32,7 @@ Control
anchors.fill: parent
color: UM.Theme.getColor("action_button_hovered")
radius: width
UM.RecolorImage
UM.ColorImage
{
anchors.fill: parent
color: UM.Theme.getColor("primary")