summaryrefslogtreecommitdiffstats
path: root/accounts/maildir/package/contents/ui
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/maildir/package/contents/ui')
-rw-r--r--accounts/maildir/package/contents/ui/MaildirAccountSettings.qml28
1 files changed, 26 insertions, 2 deletions
diff --git a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml
index 61828f34..3b2dbd35 100644
--- a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml
+++ b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml
@@ -28,7 +28,8 @@ import org.kube.accounts.maildir 1.0 as MaildirAccount
28Rectangle { 28Rectangle {
29 id: root 29 id: root
30 property string accountId 30 property string accountId
31 property string accountName: "Maildir" 31 property string accountName
32 property string icon
32 33
33 color: ColorPalette.background 34 color: ColorPalette.background
34 35
@@ -40,7 +41,22 @@ Rectangle {
40 Text { 41 Text {
41 Layout.columnSpan: 2 42 Layout.columnSpan: 2
42 Layout.fillWidth: true 43 Layout.fillWidth: true
43 text: "Account: " + accountName 44 text: "General:"
45 }
46
47 Label { text: "Account Name" }
48 TextField {
49 id: name
50 placeholderText: accountName
51 Layout.fillWidth: true
52 text: accountSettings.name
53 onTextChanged: { accountSettings.name = text; }
54 }
55
56 Text {
57 Layout.columnSpan: 2
58 Layout.fillWidth: true
59 text: "Maildir:"
44 } 60 }
45 61
46 Label { text: "Path" } 62 Label { text: "Path" }
@@ -133,11 +149,19 @@ Rectangle {
133 property string password; 149 property string password;
134 } 150 }
135 151
152 KubeSettings.Settings {
153 id: accountSettings
154 identifier: "account." + accountId
155 property string name;
156 property string icon: root.icon;
157 }
158
136 Button { 159 Button {
137 text: "Save" 160 text: "Save"
138 onClicked: { 161 onClicked: {
139 transportSettings.save(); 162 transportSettings.save();
140 maildirSettings.save(); 163 maildirSettings.save();
164 accountSettings.save();
141 } 165 }
142 } 166 }
143 Button { 167 Button {