summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorq234rty <q23456yuiop@gmail.com>2022-06-28 20:14:23 +0800
committerGitHub <noreply@github.com>2022-06-28 12:14:23 +0000
commit7a295317397d5e49b66c39605c6529d99660691c (patch)
tree5039c4f69d6d68a879b7138a75fd2b7205fc84f1 /resources/qml
parentFix clazy complaint about detatch (diff)
downloadnheko-7a295317397d5e49b66c39605c6529d99660691c.tar.xz
Fix blurriness of svg icons (#1108)
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/ImageButton.qml2
1 files changed, 2 insertions, 0 deletions
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
     }