about summary refs log tree commit diff
path: root/src/gtk/preferences_window.ui
blob: 58d3a70ce7c002af3dd9eaa0ff6215c98b0e8a84 (plain) (blame)
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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="FurPreferencesWindow" parent="AdwPreferencesWindow">
    <child>
      <object class="AdwPreferencesPage">
        <property name="icon_name">emblem-system-symbolic</property>
        <property name="title" translatable="yes">General</property>
        <child>
          <object class="AdwPreferencesGroup" id="appearance_group">
            <property name="title" translatable="yes">Appearance</property>
            <property name="visible">True</property>
            <child>
              <object class="AdwActionRow">
                <property name="title" translatable="yes">_Dark theme</property>
                <property name="use_underline">True</property>
                <property name="activatable_widget">dark_theme_switch</property>
                <child>
                  <object class="GtkSwitch" id="dark_theme_switch">
                    <property name="valign">center</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwPreferencesGroup" id="idle_group">
            <property name="title" translatable="yes">Idle</property>
            <property name="visible">True</property>
            <child>
              <object class="AdwExpanderRow" id="notify_of_idle_expander">
                <property name="title" translatable="yes">Notify of idle</property>
                <property name="subtitle" translatable="yes">(Gnome only)</property>
                <property name="show_enable_switch">True</property>
                <property name="use_underline">True</property>
                <child>
                  <object class="AdwActionRow">
                    <property name="title" translatable="yes">_Minutes to idle</property>
                    <property name="subtitle" translatable="yes">Number of miniutes before the user is considered idle</property>
                    <property name="use_underline">True</property>
                    <child>
                      <object class="GtkSpinButton" id="notify_of_idle_spin">
                        <property name="valign">center</property>
                        <property name="adjustment">
                          <object class="GtkAdjustment">
                            <property name="upper">60</property>
                            <property name="lower">1</property>
                            <property name="step_increment">1</property>
                            <property name="page_increment">10</property>
                          </object>
                        </property>
                        <property name="numeric">True</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwPreferencesGroup" id="task_group">
            <property name="title" translatable="yes">Task List</property>
            <property name="visible">True</property>
            <child>
              <object class="AdwExpanderRow" id="limit_tasks_expander">
                <property name="title" translatable="yes">Limit tasks shown</property>
                <property name="subtitle" translatable="yes">Only show X number of days in the saved tasks list</property>
                <property name="show_enable_switch">True</property>
                <property name="use_underline">True</property>
                <child>
                  <object class="AdwActionRow">
                    <property name="title" translatable="yes">_Days ago</property>
                    <property name="subtitle" translatable="yes">Number of days to display in the list</property>
                    <property name="use_underline">True</property>
                    <child>
                      <object class="GtkSpinButton" id="limit_days_spin">
                        <property name="valign">center</property>
                        <property name="adjustment">
                          <object class="GtkAdjustment">
                            <property name="upper">365</property>
                            <property name="lower">1</property>
                            <property name="step_increment">1</property>
                            <property name="page_increment">10</property>
                          </object>
                        </property>
                        <property name="numeric">True</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="AdwActionRow">
                <property name="title" translatable="yes">_Delete confirmation</property>
                <property name="use_underline">True</property>
                <property name="activatable_widget">delete_confirmation_switch</property>
                <child>
                  <object class="GtkSwitch" id="delete_confirmation_switch">
                    <property name="valign">center</property>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="AdwActionRow">
                <property name="title" translatable="yes">_Show seconds</property>
                <property name="use_underline">True</property>
                <property name="activatable_widget">show_seconds_switch</property>
                <property name="subtitle" translatable="yes">Tasks list only. Seconds always show on timer</property>
                <child>
                  <object class="GtkSwitch" id="show_seconds_switch">
                    <property name="valign">center</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>