Skip to content
Snippets Groups Projects
Unverified Commit 8f7ca298 authored by Loren Burkholder's avatar Loren Burkholder Committed by GitHub
Browse files

Simplify source URL construction

parent 7671927f
No related branches found
No related tags found
No related merge requests found
Pipeline #382 passed
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment