diff options
-rw-r--r-- | components/mail/contents/ui/Mail.qml | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml index 9481a033..9f1a6ea1 100644 --- a/components/mail/contents/ui/Mail.qml +++ b/components/mail/contents/ui/Mail.qml | |||
@@ -22,7 +22,6 @@ import QtQuick.Controls 1.3 | |||
22 | import QtQuick.Layouts 1.1 | 22 | import QtQuick.Layouts 1.1 |
23 | 23 | ||
24 | import QtQuick.Controls 2.0 as Controls2 | 24 | import QtQuick.Controls 2.0 as Controls2 |
25 | import org.kde.kirigami 1.0 as Kirigami | ||
26 | 25 | ||
27 | import org.kube.framework.actions 1.0 as KubeAction | 26 | import org.kube.framework.actions 1.0 as KubeAction |
28 | import org.kube.framework.settings 1.0 as KubeSettings | 27 | import org.kube.framework.settings 1.0 as KubeSettings |
@@ -160,9 +159,9 @@ Controls2.ApplicationWindow { | |||
160 | width: app.width | 159 | width: app.width |
161 | 160 | ||
162 | Rectangle { | 161 | Rectangle { |
163 | width: Kirigami.Units.gridUnit * 10 | 162 | width: KubeTheme.Units.gridUnit * 10 |
164 | Layout.maximumWidth: app.width * 0.25 | 163 | Layout.maximumWidth: app.width * 0.25 |
165 | Layout.minimumWidth: Kirigami.Units.gridUnit * 5 | 164 | Layout.minimumWidth: KubeTheme.Units.gridUnit * 5 |
166 | 165 | ||
167 | color: KubeTheme.Colors.textColor | 166 | color: KubeTheme.Colors.textColor |
168 | 167 | ||
@@ -178,19 +177,19 @@ Controls2.ApplicationWindow { | |||
178 | RowLayout { | 177 | RowLayout { |
179 | anchors.centerIn: parent | 178 | anchors.centerIn: parent |
180 | 179 | ||
181 | spacing: Kirigami.Units.largeSpacing | 180 | spacing: KubeTheme.Units.largeSpacing |
182 | 181 | ||
183 | KubeComponents.AccountSwitcher { | 182 | KubeComponents.AccountSwitcher { |
184 | id: accountSwitcher | 183 | id: accountSwitcher |
185 | 184 | ||
186 | iconName: "kdenlive-menu" | 185 | iconName: "kdenlive-menu" |
187 | height: Kirigami.Units.gridUnit * 1.5 | 186 | height: KubeTheme.Units.gridUnit * 1.5 |
188 | width: height | 187 | width: height |
189 | } | 188 | } |
190 | 189 | ||
191 | ToolButton { | 190 | ToolButton { |
192 | iconName: "user" | 191 | iconName: "user" |
193 | height: Kirigami.Units.gridUnit * 1.5 | 192 | height: KubeTheme.Units.gridUnit * 1.5 |
194 | width: height | 193 | width: height |
195 | 194 | ||
196 | onClicked: { | 195 | onClicked: { |
@@ -200,7 +199,7 @@ Controls2.ApplicationWindow { | |||
200 | 199 | ||
201 | ToolButton { | 200 | ToolButton { |
202 | iconName: "search" | 201 | iconName: "search" |
203 | height: Kirigami.Units.gridUnit * 1.5 | 202 | height: KubeTheme.Units.gridUnit * 1.5 |
204 | width: height | 203 | width: height |
205 | 204 | ||
206 | onClicked: { | 205 | onClicked: { |
@@ -216,10 +215,10 @@ Controls2.ApplicationWindow { | |||
216 | top: toolBar.bottom | 215 | top: toolBar.bottom |
217 | left: parent.left | 216 | left: parent.left |
218 | right: parent.right | 217 | right: parent.right |
219 | margins: Kirigami.Units.largeSpacing | 218 | margins: KubeTheme.Units.largeSpacing |
220 | } | 219 | } |
221 | color: KubeTheme.Colors.positveColor | 220 | color: KubeTheme.Colors.positveColor |
222 | height: Kirigami.Units.gridUnit * 1.5 | 221 | height: KubeTheme.Units.gridUnit * 1.5 |
223 | text: qsTr("New Email") | 222 | text: qsTr("New Email") |
224 | onClicked: { | 223 | onClicked: { |
225 | composer.open() | 224 | composer.open() |
@@ -248,11 +247,11 @@ Controls2.ApplicationWindow { | |||
248 | 247 | ||
249 | anchors { | 248 | anchors { |
250 | top: newMailButton.bottom | 249 | top: newMailButton.bottom |
251 | topMargin: Kirigami.Units.smallSpacing | 250 | topMargin: KubeTheme.Units.smallSpacing |
252 | } | 251 | } |
253 | 252 | ||
254 | width: parent.width | 253 | width: parent.width |
255 | height: Kirigami.Units.gridUnit * 2 | 254 | height: KubeTheme.Units.gridUnit * 2 |
256 | 255 | ||
257 | MouseArea { | 256 | MouseArea { |
258 | anchors.fill: parent | 257 | anchors.fill: parent |
@@ -265,10 +264,11 @@ Controls2.ApplicationWindow { | |||
265 | Repeater { | 264 | Repeater { |
266 | model: currentAccountModel | 265 | model: currentAccountModel |
267 | Row { | 266 | Row { |
267 | spacing: KubeTheme.Units.smallSpacing | ||
268 | anchors { | 268 | anchors { |
269 | bottom: parent.bottom | 269 | bottom: parent.bottom |
270 | left: parent.left | 270 | left: parent.left |
271 | leftMargin: Kirigami.Units.smallSpacing | 271 | leftMargin: KubeTheme.Units.smallSpacing |
272 | } | 272 | } |
273 | Layout.fillHeight: true | 273 | Layout.fillHeight: true |
274 | 274 | ||
@@ -282,7 +282,6 @@ Controls2.ApplicationWindow { | |||
282 | id: statusIcon | 282 | id: statusIcon |
283 | visible: false | 283 | visible: false |
284 | iconName: "" | 284 | iconName: "" |
285 | enabled: false | ||
286 | states: [ | 285 | states: [ |
287 | State { | 286 | State { |
288 | name: "busy"; when: model.status == KubeAccountsFramework.AccountsModel.BusyStatus | 287 | name: "busy"; when: model.status == KubeAccountsFramework.AccountsModel.BusyStatus |
@@ -311,7 +310,7 @@ Controls2.ApplicationWindow { | |||
311 | 310 | ||
312 | anchors { | 311 | anchors { |
313 | top: accountName.bottom | 312 | top: accountName.bottom |
314 | topMargin: Kirigami.Units.smallSpacing | 313 | topMargin: KubeTheme.Units.smallSpacing |
315 | bottom: statusBar.top | 314 | bottom: statusBar.top |
316 | left: parent.left | 315 | left: parent.left |
317 | right: parent.right | 316 | right: parent.right |
@@ -324,13 +323,13 @@ Controls2.ApplicationWindow { | |||
324 | Item { | 323 | Item { |
325 | id: statusBar | 324 | id: statusBar |
326 | anchors { | 325 | anchors { |
327 | topMargin: Kirigami.Units.smallSpacing | 326 | topMargin: KubeTheme.Units.smallSpacing |
328 | bottom: outbox.top | 327 | bottom: outbox.top |
329 | left: parent.left | 328 | left: parent.left |
330 | right: parent.right | 329 | right: parent.right |
331 | } | 330 | } |
332 | 331 | ||
333 | height: Kirigami.Units.gridUnit * 1 | 332 | height: KubeTheme.Units.gridUnit |
334 | 333 | ||
335 | Repeater { | 334 | Repeater { |
336 | model: currentAccountModel | 335 | model: currentAccountModel |
@@ -357,17 +356,17 @@ Controls2.ApplicationWindow { | |||
357 | left: parent.left | 356 | left: parent.left |
358 | right: parent.right | 357 | right: parent.right |
359 | } | 358 | } |
360 | height: Kirigami.Units.gridUnit * 1.5 | 359 | height: KubeTheme.Units.gridUnit * 1.5 |
361 | } | 360 | } |
362 | } | 361 | } |
363 | 362 | ||
364 | KubeComponents.MailListView { | 363 | KubeComponents.MailListView { |
365 | id: mailListView | 364 | id: mailListView |
366 | parentFolder: folderListView.currentFolder | 365 | parentFolder: folderListView.currentFolder |
367 | width: Kirigami.Units.gridUnit * 20 | 366 | width: KubeTheme.Units.gridUnit * 20 |
368 | height: parent.height | 367 | height: parent.height |
369 | Layout.maximumWidth: app.width * 0.4 | 368 | Layout.maximumWidth: app.width * 0.4 |
370 | Layout.minimumWidth: Kirigami.Units.gridUnit * 10 | 369 | Layout.minimumWidth: KubeTheme.Units.gridUnit * 10 |
371 | focus: true | 370 | focus: true |
372 | } | 371 | } |
373 | 372 | ||
@@ -419,7 +418,7 @@ Controls2.ApplicationWindow { | |||
419 | id: search | 418 | id: search |
420 | 419 | ||
421 | width: app.width * 0.6 | 420 | width: app.width * 0.6 |
422 | height: Kirigami.Units.gridUnit * 3 | 421 | height: KubeTheme.Units.gridUnit * 3 |
423 | 422 | ||
424 | x: app.width * 0.2 | 423 | x: app.width * 0.2 |
425 | y: app.height * 0.2 | 424 | y: app.height * 0.2 |