mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Simplify source URL construction
Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
This commit is contained in:
parent
7671927fa4
commit
8f7ca298bc
1 changed files with 1 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue