Use Theme.getIcon instead of Theme.icons

This is better for performance, according to the deprecation warning I got.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-11-21 16:08:29 +01:00
parent eb056ee17b
commit a052b8ec69
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -172,7 +172,7 @@ Cura.ExpandableComponent
textColor: UM.Theme.getColor("primary") textColor: UM.Theme.getColor("primary")
textHoverColor: UM.Theme.getColor("text") textHoverColor: UM.Theme.getColor("text")
iconSource: UM.Theme.icons.arrow_right iconSource: UM.Theme.getIcon("arrow_right")
iconOnRightSide: true iconOnRightSide: true
onClicked: popupItem.configuration_method = "custom" onClicked: popupItem.configuration_method = "custom"
@ -195,7 +195,7 @@ Cura.ExpandableComponent
textColor: UM.Theme.getColor("primary") textColor: UM.Theme.getColor("primary")
textHoverColor: UM.Theme.getColor("text") textHoverColor: UM.Theme.getColor("text")
iconSource: UM.Theme.icons.arrow_left iconSource: UM.Theme.getIcon("arrow_left")
onClicked: popupItem.configuration_method = "auto" onClicked: popupItem.configuration_method = "auto"
} }