From 2cec53888f208de550f04d24ab54a751632af727 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Sun, 29 May 2016 12:15:51 +0200 Subject: center toolbuttons for the maillistview --- components/mail/contents/ui/main.qml | 61 ++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 31 deletions(-) (limited to 'components/mail') diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml index e0ffcb20..188031cc 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/mail/contents/ui/main.qml @@ -118,49 +118,48 @@ ApplicationWindow { } } - RowLayout { + Item { height: parent.height width: mailListView.width clip: true - ToolButton { - height: toolbar.height - width: toolbar.width - iconName: "mail-mark-unread" - text: "Mark As Read" - enabled: markAsReadAction.ready - onClicked: { - markAsReadAction.execute() + RowLayout { + anchors.centerIn: parent + + ToolButton { + height: toolbar.height + width: toolbar.width + iconName: "mail-mark-unread" + text: "Mark As Read" + enabled: markAsReadAction.ready + onClicked: { + markAsReadAction.execute() + } } - } - ToolButton { - height: toolbar.height - width: toolbar.width - iconName: "mail-mark-important" - text: "Mark Important" - enabled: false - onClicked: { + ToolButton { + height: toolbar.height + width: toolbar.width + iconName: "mail-mark-important" + text: "Mark Important" + enabled: false + onClicked: { + } } - } - ToolButton { - height: toolbar.height - width: toolbar.width - iconName: "edit-delete" - text: "Delete Mail" - enabled: deleteAction.ready - onClicked: { - deleteAction.execute() + ToolButton { + height: toolbar.height + width: toolbar.width + iconName: "edit-delete" + text: "Delete Mail" + enabled: deleteAction.ready + onClicked: { + deleteAction.execute() + } } } - - Item { - Layout.fillWidth: true - } } - RowLayout{ height: parent.height width: mailView.width - 5 //to adjust for the toolbar spacing -- cgit v1.2.3