diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-12 14:08:04 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-12 14:08:04 +0200 |
commit | 0f3dc1273f2124269d19c0d1771447739b7a80f6 (patch) | |
tree | ce7abcb3667928a15202cffe81fd21a4d5e02eff /framework/qml/IconButton.qml | |
parent | d272cff709bbcc1d498d3f4db9ddc3bf190320e0 (diff) | |
download | kube-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/IconButton.qml')
-rw-r--r-- | framework/qml/IconButton.qml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/qml/IconButton.qml b/framework/qml/IconButton.qml index a2a9245d..b9b20102 100644 --- a/framework/qml/IconButton.qml +++ b/framework/qml/IconButton.qml | |||
@@ -24,7 +24,7 @@ import org.kube.framework 1.0 as Kube | |||
24 | T.Button { | 24 | T.Button { |
25 | id: root | 25 | id: root |
26 | 26 | ||
27 | property var iconName | 27 | property alias iconName: icon.iconName |
28 | 28 | ||
29 | width: Kube.Units.gridUnit + padding * 2 | 29 | width: Kube.Units.gridUnit + padding * 2 |
30 | height: Kube.Units.gridUnit + padding * 2 | 30 | height: Kube.Units.gridUnit + padding * 2 |
@@ -48,9 +48,7 @@ T.Button { | |||
48 | } | 48 | } |
49 | 49 | ||
50 | contentItem: Kube.Icon { | 50 | contentItem: Kube.Icon { |
51 | width: root.height - Kube.Units.smallSpacing * 2 | 51 | id: icon |
52 | height: width | ||
53 | iconName: root.iconName | ||
54 | } | 52 | } |
55 | } | 53 | } |
56 | 54 | ||