diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-05-29 12:12:33 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-05-29 12:12:33 +0200 |
commit | 51a5f05e48d810bddd9d50829df9b973b3eb7fa5 (patch) | |
tree | a7d3e2a8f5f99381532ca8dd0f7991aa88b4853b | |
parent | a59b70251983434982497b0420ea16ae96d3c7d9 (diff) | |
download | kube-51a5f05e48d810bddd9d50829df9b973b3eb7fa5.tar.gz kube-51a5f05e48d810bddd9d50829df9b973b3eb7fa5.zip |
make toolbar icons square again
-rw-r--r-- | components/mail/contents/ui/main.qml | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml index b8425adc..e0ffcb20 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/mail/contents/ui/main.qml | |||
@@ -106,7 +106,8 @@ ApplicationWindow { | |||
106 | } | 106 | } |
107 | 107 | ||
108 | ToolButton { | 108 | ToolButton { |
109 | Layout.fillHeight: true | 109 | height: toolbar.height |
110 | width: toolbar.width | ||
110 | iconName: "view-refresh" | 111 | iconName: "view-refresh" |
111 | text: "Sync" | 112 | text: "Sync" |
112 | enabled: syncAction.ready | 113 | enabled: syncAction.ready |
@@ -123,7 +124,8 @@ ApplicationWindow { | |||
123 | clip: true | 124 | clip: true |
124 | 125 | ||
125 | ToolButton { | 126 | ToolButton { |
126 | Layout.fillHeight: true | 127 | height: toolbar.height |
128 | width: toolbar.width | ||
127 | iconName: "mail-mark-unread" | 129 | iconName: "mail-mark-unread" |
128 | text: "Mark As Read" | 130 | text: "Mark As Read" |
129 | enabled: markAsReadAction.ready | 131 | enabled: markAsReadAction.ready |
@@ -133,7 +135,8 @@ ApplicationWindow { | |||
133 | } | 135 | } |
134 | 136 | ||
135 | ToolButton { | 137 | ToolButton { |
136 | Layout.fillHeight: true | 138 | height: toolbar.height |
139 | width: toolbar.width | ||
137 | iconName: "mail-mark-important" | 140 | iconName: "mail-mark-important" |
138 | text: "Mark Important" | 141 | text: "Mark Important" |
139 | enabled: false | 142 | enabled: false |
@@ -142,7 +145,8 @@ ApplicationWindow { | |||
142 | } | 145 | } |
143 | 146 | ||
144 | ToolButton { | 147 | ToolButton { |
145 | Layout.fillHeight: true | 148 | height: toolbar.height |
149 | width: toolbar.width | ||
146 | iconName: "edit-delete" | 150 | iconName: "edit-delete" |
147 | text: "Delete Mail" | 151 | text: "Delete Mail" |
148 | enabled: deleteAction.ready | 152 | enabled: deleteAction.ready |
@@ -198,7 +202,8 @@ ApplicationWindow { | |||
198 | ToolButton { | 202 | ToolButton { |
199 | id: newMailButton | 203 | id: newMailButton |
200 | 204 | ||
201 | Layout.fillHeight: true | 205 | height: toolbar.height |
206 | width: toolbar.width | ||
202 | 207 | ||
203 | iconName: "mail-message-new" | 208 | iconName: "mail-message-new" |
204 | text: "Compose" | 209 | text: "Compose" |
@@ -208,7 +213,8 @@ ApplicationWindow { | |||
208 | } | 213 | } |
209 | 214 | ||
210 | ToolButton { | 215 | ToolButton { |
211 | Layout.fillHeight: true | 216 | height: toolbar.height |
217 | width: toolbar.width | ||
212 | iconName: "mail-message-reply" | 218 | iconName: "mail-message-reply" |
213 | text: "Reply" | 219 | text: "Reply" |
214 | enabled: replyAction.ready | 220 | enabled: replyAction.ready |
@@ -218,7 +224,8 @@ ApplicationWindow { | |||
218 | } | 224 | } |
219 | 225 | ||
220 | ToolButton { | 226 | ToolButton { |
221 | Layout.fillHeight: true | 227 | height: toolbar.height |
228 | width: toolbar.width | ||
222 | iconName: "mail-message-edit" | 229 | iconName: "mail-message-edit" |
223 | text: "Edit" | 230 | text: "Edit" |
224 | enabled: editAction.ready | 231 | enabled: editAction.ready |
@@ -235,6 +242,7 @@ ApplicationWindow { | |||
235 | id: searchBar | 242 | id: searchBar |
236 | 243 | ||
237 | Layout.minimumWidth: Kirigami.Units.gridUnit * 25 | 244 | Layout.minimumWidth: Kirigami.Units.gridUnit * 25 |
245 | height: toolbar.height | ||
238 | 246 | ||
239 | placeholderText: "Search..." | 247 | placeholderText: "Search..." |
240 | } | 248 | } |
@@ -242,7 +250,8 @@ ApplicationWindow { | |||
242 | ToolButton { | 250 | ToolButton { |
243 | id: settingsButton | 251 | id: settingsButton |
244 | 252 | ||
245 | Layout.fillHeight: true | 253 | height: toolbar.height |
254 | width: toolbar.width | ||
246 | 255 | ||
247 | iconName: "application-menu" | 256 | iconName: "application-menu" |
248 | text: "Settings" | 257 | text: "Settings" |