summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-01-19 23:32:17 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-01-19 23:32:17 +0100
commit79aabdf7efa08249cf9c35d79193c63e259d4b96 (patch)
treeff72108ed599aa0f9e109584cd284a78c0e94f0f
parent757258042f1b41fe1ea1b4c77994173ac11e2e5c (diff)
downloadkube-79aabdf7efa08249cf9c35d79193c63e259d4b96.tar.gz
kube-79aabdf7efa08249cf9c35d79193c63e259d4b96.zip
make the new mail button green
-rw-r--r--components/mail/contents/ui/main.qml30
1 files changed, 22 insertions, 8 deletions
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 {
35 35
36 //FIXME remove fixed pixel hight 36 //FIXME remove fixed pixel hight
37 //for now just convinience during testing 37 //for now just convinience during testing
38 height: 1080 * 0.7 38 height: 1080 * 0.8
39 width: 1920 * 0.7 39 width: 1920 * 0.8
40 40
41 visible: true 41 visible: true
42 42
@@ -167,21 +167,35 @@ Controls2.ApplicationWindow {
167 } 167 }
168 } 168 }
169 169
170 Controls2.Button { 170 Rectangle {
171 id: newMailButton 171 id: newMailButton
172 172
173 anchors { 173 anchors {
174 top: toolBar.bottom 174 top: toolBar.bottom
175 topMargin: Kirigami.Units.smallSpacing 175 left: parent.left
176 horizontalCenter: parent.horizontalCenter 176 right: parent.right
177 margins: Kirigami.Units.largeSpacing
177 } 178 }
178 179
179 text: " " + qsTr("New Email") + " " 180 color: "#27ae60"
181 clip: true
182
183 height: Kirigami.Units.gridUnit * 1.5
184
185 Text {
186 anchors.centerIn: parent
187
188 text: qsTr("New Email")
189 color: "white"
190 }
180 //iconName: "mail-message-new" 191 //iconName: "mail-message-new"
181 //Controls2.Tooltip.text: "compose new email" 192 //Controls2.Tooltip.text: "compose new email"
182 193
183 onClicked: { 194 MouseArea {
184 composer.open() 195 anchors.fill: parent
196 onClicked: {
197 composer.open()
198 }
185 } 199 }
186 } 200 }
187 201