about summary refs log tree commit diff
path: root/src/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtk')
-rwxr-xr-xsrc/gtk/preferences_window.ui41
1 files changed, 38 insertions, 3 deletions
diff --git a/src/gtk/preferences_window.ui b/src/gtk/preferences_window.ui
index 0ac2337..e6de99a 100755
--- a/src/gtk/preferences_window.ui
+++ b/src/gtk/preferences_window.ui
@@ -11,7 +11,7 @@
             <property name="visible">True</property>
             <child>
               <object class="AdwActionRow">
-                <property name="title" translatable="yes">_Dark Theme</property>
+                <property name="title" translatable="yes">_Dark theme</property>
                 <property name="use_underline">True</property>
                 <property name="activatable_widget">dark_theme_switch</property>
                 <child>
@@ -29,13 +29,13 @@
             <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="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="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>
@@ -58,6 +58,41 @@
             </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>
+          </object>
+        </child>
       </object>
     </child>
   </template>