From 48eb16af831e34a43b75c6fe8797a80a90499a9a Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Wed, 31 May 2017 10:48:07 +0200 Subject: don't stretch icons --- framework/qml/Icon.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework') diff --git a/framework/qml/Icon.qml b/framework/qml/Icon.qml index 74a4971a..6dc9529f 100644 --- a/framework/qml/Icon.qml +++ b/framework/qml/Icon.qml @@ -39,10 +39,11 @@ Item { Image { id: image - anchors.fill: parent + anchors.centerIn: parent sourceSize.width: width sourceSize.height: height cache: true smooth: true + fillMode: Image.PreserveAspectFit } } -- cgit v1.2.3