aboutsummaryrefslogtreecommitdiff
path: root/qml/SettingsPage.qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-03-27 18:34:35 +0300
committerlink2xt <link2xt@testrun.org>2021-03-27 18:34:35 +0300
commit3721d92d4ff7dd56cebc9c0eb5df567de70ee074 (patch)
tree3e17a5b89a6d4d765e2dfe0b5e959c12659397dc /qml/SettingsPage.qml
parentce560074d446c196aa87cca92237d5bea80f38ef (diff)
downloadkdeltachat-3721d92d4ff7dd56cebc9c0eb5df567de70ee074.tar.gz
kdeltachat-3721d92d4ff7dd56cebc9c0eb5df567de70ee074.zip
Add more settings to Settings page
Diffstat (limited to 'qml/SettingsPage.qml')
-rw-r--r--qml/SettingsPage.qml38
1 files changed, 38 insertions, 0 deletions
diff --git a/qml/SettingsPage.qml b/qml/SettingsPage.qml
index b7a38bb..a0194ca 100644
--- a/qml/SettingsPage.qml
+++ b/qml/SettingsPage.qml
@@ -15,6 +15,20 @@ Kirigami.Page {
Kirigami.FormLayout {
anchors.fill: parent
+ Image {
+ Kirigami.FormData.label: "Avatar: "
+
+ source: "file:" + settingsPageRoot.context.getConfig("selfavatar")
+ }
+
+ TextField {
+ Kirigami.FormData.label: "Signature: "
+
+ text: settingsPageRoot.context.getConfig("selfstatus")
+ onEditingFinished: settingsPageRoot.context.setConfig("selfstatus", text)
+ selectByMouse: true
+ }
+
Switch {
text: "Prefer end-to-end encryption"
checked: settingsPageRoot.context.getConfig("e2ee_enabled") == "1"
@@ -26,5 +40,29 @@ Kirigami.Page {
checked: settingsPageRoot.context.getConfig("mdns_enabled") == "1"
onToggled: settingsPageRoot.context.setConfig("mdns_enabled", checked ? "1" : "0")
}
+
+ Switch {
+ text: "Watch Inbox"
+ checked: settingsPageRoot.context.getConfig("inbox_watch") == "1"
+ onToggled: settingsPageRoot.context.setConfig("inbox_watch", checked ? "1" : "0")
+ }
+
+ Switch {
+ text: "Watch Sent"
+ checked: settingsPageRoot.context.getConfig("sentbox_watch") == "1"
+ onToggled: settingsPageRoot.context.setConfig("sentbox_watch", checked ? "1" : "0")
+ }
+
+ Switch {
+ text: "Watch DeltaChat"
+ checked: settingsPageRoot.context.getConfig("mvbox_watch") == "1"
+ onToggled: settingsPageRoot.context.setConfig("mvbox_watch", checked ? "1" : "0")
+ }
+
+ Switch {
+ text: "Move to DeltaChat"
+ checked: settingsPageRoot.context.getConfig("mvbox_move") == "1"
+ onToggled: settingsPageRoot.context.setConfig("mvbox_move", checked ? "1" : "0")
+ }
}
}