summaryrefslogtreecommitdiffstats
path: root/framework/qml/Icon.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-12 14:08:04 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-12 14:08:04 +0200
commit0f3dc1273f2124269d19c0d1771447739b7a80f6 (patch)
treece7abcb3667928a15202cffe81fd21a4d5e02eff /framework/qml/Icon.qml
parentd272cff709bbcc1d498d3f4db9ddc3bf190320e0 (diff)
downloadkube-0f3dc1273f2124269d19c0d1771447739b7a80f6.tar.gz
kube-0f3dc1273f2124269d19c0d1771447739b7a80f6.zip
Try again to size the icons correctly.
With this I get pixel perfext icons that are properly sized (as opposed to tiny). The toolbuttons in the messagelist still look a bit out of place though. Closer investigation showed that I get most icons rendered at 22px size (that's a grid unit for me). The full button ends up being 32px. The mark as unread button has only 24px size source and is therefore scaled which then ends up looking blurry.
Diffstat (limited to 'framework/qml/Icon.qml')
-rw-r--r--framework/qml/Icon.qml8
1 files changed, 3 insertions, 5 deletions
diff --git a/framework/qml/Icon.qml b/framework/qml/Icon.qml
index 6dc9529f..947e69ef 100644
--- a/framework/qml/Icon.qml
+++ b/framework/qml/Icon.qml
@@ -22,11 +22,9 @@ Item {
22 id: root 22 id: root
23 property string iconName 23 property string iconName
24 property url iconSource 24 property url iconSource
25 property alias implicitHeight: image.implicitHeight
26 property alias implicitWidth: image.implicitWidth
27 property alias status: image.status 25 property alias status: image.status
28 width: implicitWidth 26 property alias implicitWidth: image.implicitWidth
29 height: implicitHeight 27 property alias implicitHeight: image.implicitHeight
30 28
31 onIconNameChanged: setImageSource() 29 onIconNameChanged: setImageSource()
32 30
@@ -39,7 +37,7 @@ Item {
39 37
40 Image { 38 Image {
41 id: image 39 id: image
42 anchors.centerIn: parent 40 anchors.fill: parent
43 sourceSize.width: width 41 sourceSize.width: width
44 sourceSize.height: height 42 sourceSize.height: height
45 cache: true 43 cache: true