Dekko
Loading...
Searching...
No Matches
DisplaySettings.qml
1/* Copyright (C) 2016 - 2017 Dan Chapman <dpniel@ubuntu.com>
2
3 This file is part of Dekko email client for Ubuntu devices
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2 of
8 the License or (at your option) version 3
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18import QtQuick 2.4
19import Lomiri.Components 1.3
20import Dekko.Mail.Settings 1.0
21import Dekko.Lomiri.Components 1.0
23PageFlickable {
24 id: displaySettings
25
26 SectionHeader {
27 textMargin: 0
28 text: qsTr("Navigation menu")
29 }
30
32 text: qsTr("Show smart folders")
33 checked: PolicyManager.views.smartFoldersVisible
34 onCheckedChanged: {
35 if (checked !== PolicyManager.views.smartFoldersVisible) {
36 PolicyManager.views.smartFoldersVisible = checked
37 }
38 }
39 }
40
42 text: qsTr("Show favourite folders")
43 checked: false
44 onCheckedChanged: {
45 if (checked !== PolicyManager.views.setFavouritesVisible) {
46 PolicyManager.views.setFavouritesVisible = checked
47 }
48 }
49 }
50
52 textMargin: 0
53 text: qsTr("Messages")
54 }
55
57 text: qsTr("Show avatars")
58 checked: PolicyManager.views.gravatarEnabled
59 onCheckedChanged: {
60 if (checked !== PolicyManager.views.gravatarEnabled) {
61 PolicyManager.views.gravatarEnabled = checked
62 }
63 }
64 }
65
67 text: qsTr("Prefer plain text")
68 checked: PolicyManager.views.preferPlainText
69 onCheckedChanged: {
70 if (checked !== PolicyManager.views.preferPlainText) {
71 PolicyManager.views.preferPlainText = checked
72 }
73 }
74 }
75}