summaryrefslogtreecommitdiffstats
path: root/components/mail/contents/ui/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/mail/contents/ui/main.qml')
-rw-r--r--components/mail/contents/ui/main.qml125
1 files changed, 1 insertions, 124 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml
index 4d60e71b..12815e6d 100644
--- a/components/mail/contents/ui/main.qml
+++ b/components/mail/contents/ui/main.qml
@@ -139,131 +139,8 @@ ApplicationWindow {
139 height: parent.height 139 height: parent.height
140 width: folderListView.width - 5 //to adjust for the toolbar spacing 140 width: folderListView.width - 5 //to adjust for the toolbar spacing
141 141
142 Button { 142 KubeComponents.AccountSwitcher {
143 id: accountSwitcher
144
145 Layout.fillWidth: true
146 Layout.fillHeight: true
147
148 text: "Account Switcher"
149
150 Rectangle {
151 anchors {
152 top: parent.bottom
153 left: parent.left
154 }
155
156 height: 300
157 width: 600
158
159 color: "lightgrey" //FIXME create a propper dialog thingy
160 clip: true
161
162 Item {
163 id: footer
164
165 anchors {
166 bottom: parent.bottom
167 left: parent.left
168 right: parent.right
169 margins: Kirigami.Units.largeSpacing
170 }
171
172 height: Kirigami.Units.gridUnit + Kirigami.Units.smallSpacing * 1
173 width: listView.width
174
175 Button {
176
177 anchors {
178 verticalCenter: parent.verticalCenter
179 right: parent.right
180 }
181
182 text: "Create new Account"
183 }
184
185 Button {
186
187 anchors {
188 verticalCenter: parent.verticalCenter
189 left: parent.left
190 }
191
192 iconName: "view-refresh"
193 text: "Sync"
194 enabled: syncAction.ready
195
196 onClicked: {
197 syncAction.execute()
198 }
199 }
200 }
201
202 ListView {
203 id: listView
204
205 anchors {
206 top: parent.top
207 bottom: footer.top
208 left: parent.left
209 right: parent.right
210 }
211
212 clip: true
213
214 model: KubeFramework.AccountsModel { }
215
216 delegate: Kirigami.AbstractListItem {
217 id: accountDelegate
218
219 enabled: true
220 supportsMouseEvents: true
221
222 contentItem: Item {
223 height: Kirigami.Units.gridUnit + Kirigami.Units.smallSpacing * 1
224 width: listView.width
225
226 RowLayout {
227 anchors {
228 left: parent.left
229 margins: Kirigami.Units.smallSpacing
230 }
231
232 Layout.fillHeight: true
233
234
235 KubeFramework.AccountFactory {
236 id: accountFactory
237 accountId: model.accountId
238 }
239
240 Kirigami.Icon {
241 source: accountFactory.icon
242 }
243
244 Label {
245 text: model.name === "" ? accountFactory.name : model.name
246 }
247 }
248 Button {
249
250 anchors {
251 right: parent.right
252 margins: Kirigami.Units.largeSpacing
253 }
254
255 visible: accountDelegate.containsMouse
256 text: "edit"
257 }
258 }
259 }
260 }
261 }
262 } 143 }
263
264 /*
265 *
266 */
267 } 144 }
268 //END Folderlist section 145 //END Folderlist section
269 146