From bc7a2ceabb8836a668d14f3dbf3731997921c7e7 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 3 Apr 2017 12:59:21 +0200 Subject: A Button --- components/mail/contents/ui/Mail.qml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'components/mail/contents') diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml index 3978098f..a1ff1cb8 100644 --- a/components/mail/contents/ui/Mail.qml +++ b/components/mail/contents/ui/Mail.qml @@ -210,35 +210,19 @@ Controls2.ApplicationWindow { } } - Rectangle { + KubeComponents.Button { id: newMailButton - anchors { top: toolBar.bottom left: parent.left right: parent.right margins: Kirigami.Units.largeSpacing } - color: KubeTheme.Colors.positveColor - clip: true - height: Kirigami.Units.gridUnit * 1.5 - - Text { - anchors.centerIn: parent - - text: qsTr("New Email") - color: KubeTheme.Colors.highlightedTextColor - } - //iconName: "mail-message-new" - //Controls2.Tooltip.text: "compose new email" - - MouseArea { - anchors.fill: parent - onClicked: { - composer.open() - } + text: qsTr("New Email") + onClicked: { + composer.open() } } -- cgit v1.2.3