~tristan957/harvest-almanac

ref: b879963b39b5a4bbc0cca532857541f453a8f4c3 harvest-almanac/data/ui/hal-preferences-window.ui -rw-r--r-- 9.9 KiB
b879963bTristan Partin harvest-almanac: add back in about/prefs popover 1 year, 8 months ago
                                                                                
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.1 -->
<interface>
  <requires lib="gtk+" version="3.20"/>
  <requires lib="libhandy" version="0.0"/>
  <template class="HalPreferencesWindow" parent="HdyPreferencesWindow">
    <property name="default_height">700</property>
    <property name="default_width">640</property>
    <property name="width_request">300</property>
    <property name="title">Preferences</property>
    <child>
      <object class="HdyPreferencesPage">
        <property name="icon_name">preferences-system-symbolic</property>
        <property name="title">General</property>
        <property name="visible">True</property>
        <child>
          <object class="HdyPreferencesGroup">
            <property name="description" translatable="yes">Settings for changing the view.</property>
            <property name="title" translatable="yes">View</property>
            <property name="visible">True</property>
            <child>
              <object class="HdyActionRow">
                <property name="title" translatable="yes">Prefer Dark Theme</property>
                <property name="visible">True</property>
                <child type="action">
                  <object class="GtkSwitch" id="prefer_dark_theme_switch">
                    <property name="visible">True</property>
                    <property name="can_focus">True</property>
                    <property name="valign">center</property>
                    <signal name="notify::active" handler="on_prefer_dark_theme_switch_notify_active" object="HalPreferencesWindow" swapped="no"/>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="HdyPreferencesGroup">
            <property name="description" translatable="yes">Harvest Almanac requires that an access token, account ID, and contact email be set in order to properly use the Harvest API on your behalf.</property>
            <property name="title" translatable="yes">Harvest API</property>
            <property name="visible">True</property>
            <child>
              <object class="HdyActionRow">
                <property name="title" translatable="yes">Access Token</property>
                <property name="visible">True</property>
                <child type="action">
                  <object class="GtkBox">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="spacing">5</property>
                    <child>
                      <object class="GtkButton" id="harvest_api_access_token_forget_button">
                        <property name="label" translatable="yes">Forget</property>
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="receives_default">True</property>
                        <property name="valign">center</property>
                        <property name="sensitive">False</property>
                        <signal name="clicked" handler="on_harvest_api_access_token_forget_button_clicked" object="HalPreferencesWindow" swapped="no"/>
                        <style>
                            <class name="destructive-action"/>
                          </style>
                      </object>
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">0</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkEntry" id="harvest_api_access_token_entry">
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="valign">center</property>
                        <property name="visibility">False</property>
                        <property name="invisible_char">•</property>
                        <property name="input_purpose">password</property>
                        <property name="sensitive">False</property>
                        <signal name="changed" handler="on_harvest_api_access_token_entry_changed" object="HalPreferencesWindow" swapped="no"/>
                      </object>
                      <packing>
                        <property name="expand">True</property>
                        <property name="fill">True</property>
                        <property name="position">1</property>
                      </packing>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="HdyActionRow">
                <property name="title" translatable="yes">Account ID</property>
                <property name="visible">True</property>
                <child type="action">
                  <object class="GtkEntry" id="harvest_account_id_entry">
                    <property name="visible">True</property>
                    <property name="can_focus">True</property>
                    <property name="valign">center</property>
                    <property name="sensitive">False</property>
                    <signal name="changed" handler="on_harvest_account_id_entry_changed" object="HalPreferencesWindow" swapped="no"/>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="HdyActionRow">
                <property name="title" translatable="yes">Contact Email</property>
                <property name="visible">True</property>
                <child type="action">
                  <object class="GtkEntry" id="harvest_api_contact_email_entry">
                    <property name="visible">True</property>
                    <property name="can_focus">True</property>
                    <property name="valign">center</property>
                    <property name="sensitive">False</property>
                    <signal name="changed" handler="on_harvest_api_contact_email_entry_changed" object="HalPreferencesWindow" swapped="no"/>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="HdyPreferencesPage">
        <property name="icon_name">preferences-other-symbolic</property>
        <property name="title">Advanced</property>
        <property name="visible">True</property>
        <child>
          <object class="HdyPreferencesGroup">
            <property name="description" translatable="yes">Harvest Almanac uses libsoup to access the Harvest API. Below are some settings that you can adjust in order to adjust performance and more easily debug potential issues.</property>
            <property name="title" translatable="yes">Soup</property>
            <property name="visible">True</property>
            <child>
              <object class="HdyActionRow">
                <property name="title" translatable="yes">Max Connections</property>
                <property name="visible">True</property>
                <child type="action">
                  <object class="GtkSpinButton" id="soup_max_connections_spin">
                    <property name="adjustment">soup_max_connections_adjustment</property>
                    <property name="valign">center</property>
                    <property name="visible">True</property>
                    <signal name="value-changed" handler="on_soup_max_connections_spin_value_changed" object="HalPreferencesWindow" swapped="no"/>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="HdyActionRow">
                <property name="title" translatable="yes">Logger Level</property>
                <property name="visible">True</property>
                <child type="action">
                  <object class="GtkComboBoxText" id="soup_logger_level_combo">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="valign">center</property>
                    <property name="active">0</property>
                    <signal name="changed" handler="on_soup_logger_level_combo_changed" object="HalPreferencesWindow" swapped="no"/>
                    <items>
                      <item id="0" translatable="yes">None</item>
                      <item id="1" translatable="yes">Minimal</item>
                      <item id="2" translatable="yes">Headers</item>
                      <item id="3" translatable="yes">Body</item>
                    </items>
                  </object>
                  <packing>
                    <property name="left_attach">1</property>
                    <property name="top_attach">2</property>
                  </packing>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
  <object class="GtkButton" id="save_button">
    <property name="label" translatable="yes">Save</property>
    <property name="visible">True</property>
    <property name="can_focus">True</property>
    <property name="receives_default">True</property>
    <signal name="clicked" handler="on_save_button_clicked" object="HalPreferencesWindow" swapped="no"/>
    <style>
      <class name="suggested-action"/>
    </style>
  </object>
  <object class="GtkAdjustment" id="soup_max_connections_adjustment">
    <property name="lower">1</property>
    <property name="upper">10</property>
    <property name="value">4</property>
    <property name="step_increment">1</property>
    <property name="page_increment">2</property>
  </object>
</interface>