diff options
Diffstat (limited to 'applications/kube-mail/package/contents')
-rw-r--r-- | applications/kube-mail/package/contents/ui/Composer.qml | 78 | ||||
-rw-r--r-- | applications/kube-mail/package/contents/ui/FocusComposer.qml | 20 |
2 files changed, 73 insertions, 25 deletions
diff --git a/applications/kube-mail/package/contents/ui/Composer.qml b/applications/kube-mail/package/contents/ui/Composer.qml index 5502b7f9..1a6a4cc4 100644 --- a/applications/kube-mail/package/contents/ui/Composer.qml +++ b/applications/kube-mail/package/contents/ui/Composer.qml | |||
@@ -18,9 +18,11 @@ | |||
18 | import QtQuick 2.4 | 18 | import QtQuick 2.4 |
19 | import QtQuick.Controls 1.4 | 19 | import QtQuick.Controls 1.4 |
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
21 | 22 | ||
22 | import org.kde.kube.mail 1.0 as Mail | 23 | import org.kde.kube.mail 1.0 as Mail |
23 | 24 | ||
25 | |||
24 | Item { | 26 | Item { |
25 | id: root | 27 | id: root |
26 | property variant originalMessage | 28 | property variant originalMessage |
@@ -79,20 +81,48 @@ Item { | |||
79 | text: "To" | 81 | text: "To" |
80 | } | 82 | } |
81 | 83 | ||
82 | TextField { | 84 | RowLayout { |
83 | id: to | ||
84 | |||
85 | Layout.fillWidth: true | 85 | Layout.fillWidth: true |
86 | 86 | ||
87 | text: composer.to | 87 | TextField { |
88 | id: to | ||
88 | 89 | ||
89 | onTextChanged: { | 90 | Layout.fillWidth: true |
90 | composer.to = text; | 91 | |
92 | text: composer.to | ||
93 | |||
94 | onTextChanged: { | ||
95 | composer.to = text; | ||
96 | } | ||
97 | } | ||
98 | |||
99 | PlasmaComponents.Button { | ||
100 | id: ccButton | ||
101 | |||
102 | text: "Cc" | ||
103 | |||
104 | onClicked: { | ||
105 | cc.visible = true | ||
106 | ccButton.visible = false | ||
107 | } | ||
108 | } | ||
109 | |||
110 | PlasmaComponents.Button { | ||
111 | id: bccButton | ||
112 | |||
113 | text: "Bcc" | ||
114 | |||
115 | onClicked: { | ||
116 | bcc.visible = true | ||
117 | bccButton.visible = false | ||
118 | } | ||
91 | } | 119 | } |
92 | } | 120 | } |
93 | 121 | ||
94 | Label { | 122 | Label { |
95 | text: "Cc" | 123 | text: "Cc" |
124 | |||
125 | visible: cc.visible | ||
96 | } | 126 | } |
97 | 127 | ||
98 | TextField { | 128 | TextField { |
@@ -100,6 +130,8 @@ Item { | |||
100 | 130 | ||
101 | Layout.fillWidth: true | 131 | Layout.fillWidth: true |
102 | 132 | ||
133 | visible: false | ||
134 | |||
103 | text: composer.cc | 135 | text: composer.cc |
104 | 136 | ||
105 | onTextChanged: { | 137 | onTextChanged: { |
@@ -109,6 +141,8 @@ Item { | |||
109 | 141 | ||
110 | Label { | 142 | Label { |
111 | text: "Bcc" | 143 | text: "Bcc" |
144 | |||
145 | visible: bcc.visible | ||
112 | } | 146 | } |
113 | 147 | ||
114 | TextField { | 148 | TextField { |
@@ -116,6 +150,8 @@ Item { | |||
116 | 150 | ||
117 | Layout.fillWidth: true | 151 | Layout.fillWidth: true |
118 | 152 | ||
153 | visible : false | ||
154 | |||
119 | text: composer.bcc | 155 | text: composer.bcc |
120 | 156 | ||
121 | onTextChanged: { | 157 | onTextChanged: { |
@@ -138,6 +174,36 @@ Item { | |||
138 | } | 174 | } |
139 | } | 175 | } |
140 | 176 | ||
177 | Item { | ||
178 | |||
179 | Layout.fillWidth: true | ||
180 | |||
181 | height: subject.height * 1.5 | ||
182 | |||
183 | PlasmaComponents.Button { | ||
184 | |||
185 | anchors { | ||
186 | bottom: parent.bottom | ||
187 | } | ||
188 | |||
189 | text: "Save as Draft" | ||
190 | |||
191 | onClicked: { | ||
192 | composer.saveAsDraft() | ||
193 | } | ||
194 | } | ||
195 | |||
196 | PlasmaComponents.Button { | ||
197 | |||
198 | anchors { | ||
199 | bottom: parent.bottom | ||
200 | right: parent.right | ||
201 | } | ||
202 | |||
203 | text: "Attach" | ||
204 | } | ||
205 | } | ||
206 | |||
141 | TextArea { | 207 | TextArea { |
142 | id: content | 208 | id: content |
143 | 209 | ||
diff --git a/applications/kube-mail/package/contents/ui/FocusComposer.qml b/applications/kube-mail/package/contents/ui/FocusComposer.qml index 2be656ab..8ec01cc9 100644 --- a/applications/kube-mail/package/contents/ui/FocusComposer.qml +++ b/applications/kube-mail/package/contents/ui/FocusComposer.qml | |||
@@ -65,7 +65,7 @@ Rectangle { | |||
65 | } | 65 | } |
66 | 66 | ||
67 | RowLayout { | 67 | RowLayout { |
68 | Layout.fillWidth: true | 68 | Layout.alignment: Qt.AlignRight |
69 | 69 | ||
70 | Button { | 70 | Button { |
71 | text: "Send" | 71 | text: "Send" |
@@ -75,24 +75,6 @@ Rectangle { | |||
75 | root.visible = false | 75 | root.visible = false |
76 | } | 76 | } |
77 | } | 77 | } |
78 | |||
79 | Button { | ||
80 | text: "Save Draft" | ||
81 | |||
82 | onClicked: { | ||
83 | composer.saveAsDraft() | ||
84 | root.visible = false | ||
85 | } | ||
86 | } | ||
87 | |||
88 | Button { | ||
89 | text: "Discard" | ||
90 | |||
91 | onClicked: { | ||
92 | composer.clear() | ||
93 | root.visible = false | ||
94 | } | ||
95 | } | ||
96 | } | 78 | } |
97 | } | 79 | } |
98 | } | 80 | } |