about summary refs log tree commit diff
path: root/src/gtk/preferences_dialog.ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtk/preferences_dialog.ui')
-rw-r--r--src/gtk/preferences_dialog.ui236
1 files changed, 236 insertions, 0 deletions
diff --git a/src/gtk/preferences_dialog.ui b/src/gtk/preferences_dialog.ui
new file mode 100644
index 0000000..2971d88
--- /dev/null
+++ b/src/gtk/preferences_dialog.ui
@@ -0,0 +1,236 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <template class="FurPreferencesDialog" parent="AdwPreferencesDialog">
+    <child>
+      <object class="AdwPreferencesPage">
+        <property name="icon_name">emblem-system-symbolic</property>
+        <property name="title" translatable="yes" context="A page title of the preferences dialog">_General</property>
+        <property name="use_underline">True</property>
+        <child>
+          <object class="AdwPreferencesGroup" id="appearance_group">
+            <property name="title" translatable="yes">Appearance</property>
+            <property name="visible">True</property>
+            <child>
+              <object class="AdwSwitchRow" id="dark_theme_switch">
+                <property name="title" translatable="yes">Dark Theme</property>
+              </object>
+            </child>
+          </object>
+        </child>
+        <child>
+          <object class="AdwPreferencesGroup">
+            <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="AdwSpinRow" id="notify_of_idle_spin">
+                    <property name="title" translatable="yes">_Minutes to Idle</property>
+                    <property name="subtitle" translatable="yes">Number of minutes before the user is considered idle</property>
+                    <property name="use_underline">True</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>
+        <child>
+          <object class="AdwPreferencesGroup">
+            <property name="title" translatable="yes">Timer</property>
+            <property name="visible">True</property>
+            <child>
+              <object class="AdwExpanderRow" id="pomodoro_expander">
+                <property name="title" translatable="yes">_Pomodoro</property>
+                <property name="subtitle" translatable="yes">Timer counts down instead of up</property>
+                <property name="show_enable_switch">True</property>
+                <property name="use_underline">True</property>
+                <child>
+                  <object class="AdwSpinRow" id="pomodoro_spin">
+                    <property name="title" translatable="yes">_Start Time in Minutes</property>
+                    <property name="use_underline">True</property>
+                    <property name="adjustment">
+                      <object class="GtkAdjustment">
+                        <property name="upper">999</property>
+                        <property name="lower">1</property>
+                        <property name="step_increment">1</property>
+                        <property name="page_increment">15</property>
+                      </object>
+                    </property>
+                    <property name="numeric">True</property>
+                  </object>
+                </child>
+              </object>
+            </child>
+            <child>
+              <object class="AdwExpanderRow" id="autosave_expander">
+                <property name="title" translatable="yes">_Autosave</property>
+                <property name="subtitle" translatable="yes">Prevent losing tracked time due to improper shutdown</property>
+                <property name="show_enable_switch">True</property>
+                <property name="use_underline">True</property>
+                <child>
+                  <object class="AdwSpinRow" id="autosave_spin">
+                    <property name="title" translatable="yes">Autosave Every _X Minutes</property>
+                    <property name="use_underline">True</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>
+            <child>
+              <object class="AdwSwitchRow" id="inclusive_total_switch">
+                <property name="title" translatable="yes">In_clusive Total Time</property>
+                <property name="subtitle" translatable="yes">Today's total time includes the ongoing timer</property>
+                <property name="use_underline">True</property>
+              </object>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
+    <child>
+      <object class="AdwPreferencesPage" id="tasks_page">
+        <property name="icon_name">view-list-symbolic</property>
+        <property name="title" translatable="yes" context="A page title of the preferences dialog">_Tasks</property>
+        <property name="use_underline">True</property>
+        <child>
+          <object class="AdwPreferencesGroup">
+            <property name="title" translatable="yes">Task List</property>
+            <property name="visible">True</property>
+            <child>
+              <object class="AdwSwitchRow" id="delete_confirmation_switch">
+                <property name="title" translatable="yes">Delete _Confirmation</property>
+                <property name="use_underline">True</property>
+              </object>
+            </child>
+            <child>
+              <object class="AdwExpanderRow" id="limit_tasks_expander">
+                <property name="title" translatable="yes">_Limit History Shown</property>
+                <property name="subtitle" translatable="yes">Only show the specified number of days in the tasks list</property>
+                <property name="show_enable_switch">True</property>
+                <property name="use_underline">True</property>
+                <child>
+                  <object class="AdwSpinRow" id="limit_days_spin">
+                    <property name="title" translatable="yes">_Number of Days</property>
+                    <property name="use_underline">True</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>
+            <child>
+              <object class="AdwSwitchRow" id="show_daily_sums_switch">
+                <property name="title" translatable="yes">Show Daily S_ums</property>
+                <property name="use_underline">True</property>
+              </object>
+            </child>
+            <child>
+              <object class="AdwSwitchRow" id="show_seconds_switch">
+                <property name="title" translatable="yes">Show _Seconds</property>
+                <property name="subtitle" translatable="yes">Tasks list only. Seconds always show on timer</property>
+                <property name="use_underline">True</property>
+              </object>
+            </child>
+            <child>
+              <object class="AdwSwitchRow" id="show_tags_switch">
+                <property name="title" translatable="yes">S_how Tags</property>
+                <property name="subtitle" translatable="yes">Tags are saved, just not shown</property>
+                <property name="use_underline">True</property>
+              </object>
+            </child>
+          </object>
+        </child>
+        <child>
+          <object class="AdwPreferencesGroup">
+            <property name="title" translatable="yes">Task Input</property>
+            <property name="visible">True</property>
+            <child>
+              <object class="AdwSwitchRow" id="autocomplete_switch">
+                <property name="title" translatable="yes">_Autocomplete</property>
+                <property name="use_underline">True</property>
+              </object>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
+    <child>
+      <object class="AdwPreferencesPage" id="data_page">
+        <property name="icon_name">drive-harddisk-symbolic</property>
+        <property name="title" translatable="yes" context="A page title of the preferences dialog">_Data</property>
+        <property name="use_underline">True</property>
+        <child>
+          <object class="AdwPreferencesGroup">
+            <property name="title" translatable="yes">Reports</property>
+            <property name="visible">True</property>
+            <child>
+              <object class="AdwComboRow" id="week_start_combo">
+                <property name="title" translatable="yes">_Week Starts On</property>
+                <property name="use_underline">True</property>
+                <property name="model">
+                  <object class="GtkStringList">
+                    <items>
+                      <item translatable="yes">Monday</item>
+                      <item translatable="yes">Sunday</item>
+                    </items>
+                  </object>
+                </property>
+              </object>
+            </child>
+          </object>
+        </child>
+        <child>
+          <object class="AdwPreferencesGroup">
+            <property name="title" translatable="yes">Database</property>
+            <property name="visible">True</property>
+            <child>
+              <object class="AdwActionRow" id="database_loc_row">
+                <property name="title" translatable="yes">Database _Location</property>
+                <property name="subtitle" translatable="no">/location/</property>
+                <property name="use_underline">True</property>
+                <property name="activatable_widget">database_browse_btn</property>
+                <child>
+                  <object class="GtkButton" id="database_browse_btn">
+                    <property name="valign">center</property>
+                    <property name="label" translatable="yes">Browse</property>
+                    <style>
+                      <class name="flat" />
+                    </style>
+                  </object>
+                </child>
+              </object>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
+  </template>
+</interface>