-
Notifications
You must be signed in to change notification settings - Fork 17
/
preferences.ui
166 lines (163 loc) · 7.15 KB
/
preferences.ui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2023 Sasha Hale <dgsasha04@gmail.com>
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<template class="PreferencesWindow" parent="AdwPreferencesWindow">
<property name="title" translatable="yes">Preferences</property>
<property name="default-width">450</property>
<property name="width-request">360</property>
<property name="default-height">600</property>
<property name="destroy-with-parent">true</property>
<child>
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup" id="cloud_syncing">
<property name="title" translatable="yes">Syncing</property>
<property name="header-suffix">
<object class="GtkSpinner" id="spinner"/>
</property>
<style>
<class name="ms-accounts"/>
</style>
<child>
<object class="AdwExpanderRow" id="ms_sync_row">
<property name="title" translatable="yes">Microsoft To Do</property>
<child>
<object class="AdwActionRow" id="ms_add_account">
<style>
<class name="row-button"/>
<class name="suggested-action"/>
</style>
<property name="activatable">true</property>
<child type="prefix">
<object class="GtkLabel">
<property name="valign">center</property>
<property name="halign">center</property>
<property name="label" translatable="yes">Add Account</property>
</object>
</child>
<child type="prefix">
<object class="GtkBox">
<property name="hexpand">true</property>
<property name="halign">start</property>
</object>
</child>
<signal name="activated" handler="ms_sign_in" swapped="no"/>
</object>
</child>
</object>
</child>
<child>
<object class="AdwExpanderRow" id="caldav_sync_row">
<property name="title" translatable="yes">CalDAV</property>
<child>
<object class="AdwActionRow" id="caldav_add_account">
<style>
<class name="row-button"/>
<class name="suggested-action"/>
</style>
<property name="activatable">true</property>
<child type="prefix">
<object class="GtkLabel">
<property name="valign">center</property>
<property name="halign">center</property>
<property name="label" translatable="yes">Add Account</property>
</object>
</child>
<child type="prefix">
<object class="GtkBox">
<property name="hexpand">true</property>
<property name="halign">start</property>
</object>
</child>
<signal name="activated" handler="caldav_sign_in" swapped="no"/>
</object>
</child>
</object>
</child>
<child>
<object class="AdwComboRow" id="refresh_time_row">
<property name="title" translatable="yes">Auto refresh frequency</property>
<property name="model">refresh_frequency</property>
<child type="suffix">
<object class="GtkButton" id="refresh_button">
<property name="label" translatable="yes">Refresh</property>
<style>
<class name="refresh"/>
</style>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">General</property>
<child>
<object class="AdwComboRow" id="time_format_row">
<property name="title" translatable="yes">Time format</property>
<property name="model">time_formats</property>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Week starts on Sunday</property>
<property name="activatable-widget">week_switch</property>
<child>
<object class="GtkSwitch" id="week_switch">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwExpanderRow" id="sound_switch">
<property name="title" translatable="yes">Play sound with notification</property>
<property name="show-enable-switch">true</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Use the included notification sound</property>
<property name="subtitle" translatable="yes">Otherwise the bell sound from the enabled sound theme will be used</property>
<property name="activatable-widget">sound_theme_switch</property>
<child>
<object class="GtkSwitch" id="sound_theme_switch">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
<object class="GtkStringList" id="time_formats">
<items>
<item translatable="yes">Use locale default</item>
<item translatable="yes">12 hour time</item>
<item translatable="yes">24 hour time</item>
</items>
</object>
<object class="GtkStringList" id="refresh_frequency">
<items>
<item translatable="yes">5 mins</item>
<item translatable="yes">15 mins</item>
<item translatable="yes">30 mins</item>
<item translatable="yes">60 mins</item>
</items>
</object>
</interface>