From 79aabdf7efa08249cf9c35d79193c63e259d4b96 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 19 Jan 2017 23:32:17 +0100 Subject: make the new mail button green --- components/mail/contents/ui/main.qml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'components/mail/contents/ui') diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml index 8190d59b..955e9777 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/mail/contents/ui/main.qml @@ -35,8 +35,8 @@ Controls2.ApplicationWindow { //FIXME remove fixed pixel hight //for now just convinience during testing - height: 1080 * 0.7 - width: 1920 * 0.7 + height: 1080 * 0.8 + width: 1920 * 0.8 visible: true @@ -167,21 +167,35 @@ Controls2.ApplicationWindow { } } - Controls2.Button { + Rectangle { id: newMailButton anchors { top: toolBar.bottom - topMargin: Kirigami.Units.smallSpacing - horizontalCenter: parent.horizontalCenter + left: parent.left + right: parent.right + margins: Kirigami.Units.largeSpacing } - text: " " + qsTr("New Email") + " " + color: "#27ae60" + clip: true + + height: Kirigami.Units.gridUnit * 1.5 + + Text { + anchors.centerIn: parent + + text: qsTr("New Email") + color: "white" + } //iconName: "mail-message-new" //Controls2.Tooltip.text: "compose new email" - onClicked: { - composer.open() + MouseArea { + anchors.fill: parent + onClicked: { + composer.open() + } } } -- cgit v1.2.3