Use the Item element instead of Rectangle for banner icon

To prevent un-necessary draw checks as the background is transparent

CURA-8564
This commit is contained in:
casper 2021-11-29 12:01:42 +01:00 committed by Jelle Spijker
parent 5dc664e821
commit 7e48657872
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A

View file

@ -28,7 +28,7 @@ Rectangle
color: UM.Theme.getColor("action_panel_secondary")
// Icon
Rectangle
Item
{
id: onboardingIcon
anchors
@ -39,7 +39,6 @@ Rectangle
}
width: UM.Theme.getSize("button_icon").width
height: UM.Theme.getSize("button_icon").height
color: "transparent"
UM.RecolorImage
{
anchors.fill: parent