From 7a295317397d5e49b66c39605c6529d99660691c Mon Sep 17 00:00:00 2001 From: q234rty Date: Tue, 28 Jun 2022 20:14:23 +0800 Subject: Fix blurriness of svg icons (#1108) --- resources/qml/ImageButton.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'resources/qml') diff --git a/resources/qml/ImageButton.qml b/resources/qml/ImageButton.qml index ffd3e920..080bea23 100644 --- a/resources/qml/ImageButton.qml +++ b/resources/qml/ImageButton.qml @@ -28,6 +28,8 @@ AbstractButton { // Workaround, can't get icon.source working for now... anchors.fill: parent source: image != "" ? ("image://colorimage/" + image + "?" + ((button.hovered && changeColorOnHover) ? highlightColor : buttonTextColor)) : "" + sourceSize.height: button.height + sourceSize.width: button.width fillMode: Image.PreserveAspectFit } -- cgit 1.5.1