diff --git a/resources/qml/ImageButton.qml b/resources/qml/ImageButton.qml index 7e3e0849..58e0a2a9 100644 --- a/resources/qml/ImageButton.qml +++ b/resources/qml/ImageButton.qml @@ -19,12 +19,7 @@ AbstractButton { // Workaround, can't get icon.source working for now... anchors.fill: parent - source: { - var src = "image://colorimage/" + image; - if (changeColorOnHover) - src += "?" + (button.hovered ? highlightColor : buttonTextColor); - return src; - } + source: "image://colorimage/" + image + "?" + ((button.hovered && changeColorOnHover) ? highlightColor : buttonTextColor) } MouseArea {