diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2023-06-04 17:58:41 +0200 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2023-06-04 17:58:41 +0200 |
commit | c7d283c483a24bccc501a8a66cfd2a60b43ffb0f (patch) | |
tree | f683013bdecd9e509d2b1ef7401fa31f4183936c /src/gtk | |
parent | 3cbbabd4aa35342b36dce327794149f0c5704508 (diff) | |
download | Furtherance-c7d283c483a24bccc501a8a66cfd2a60b43ffb0f.tar.zst |
#97: Add 'This Week' and 'Last Week' to reports. Add start of week picker to settings.
Diffstat (limited to 'src/gtk')
-rw-r--r-- | src/gtk/preferences_window.ui | 21 | ||||
-rw-r--r-- | src/gtk/report.ui | 4 |
2 files changed, 23 insertions, 2 deletions
diff --git a/src/gtk/preferences_window.ui b/src/gtk/preferences_window.ui index 3b862c0..e916883 100644 --- a/src/gtk/preferences_window.ui +++ b/src/gtk/preferences_window.ui @@ -218,7 +218,26 @@ </child> </object> </child> - + </object> + </child> + <child> + <object class="AdwPreferencesGroup" id="reports_group"> + <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> diff --git a/src/gtk/report.ui b/src/gtk/report.ui index 92ae072..db4b651 100644 --- a/src/gtk/report.ui +++ b/src/gtk/report.ui @@ -30,7 +30,9 @@ <object class="GtkComboBoxText" id="range_combo"> <property name="halign">center</property> <items> - <item translatable="yes" id="week_item">Past week</item> + <item translatable="yes" id="this_week_item">This Week</item> + <item translatable="yes" id="last_week_item">Last Week</item> + <item translatable="yes" id="week_item">Past 7 days</item> <item translatable="yes" id="month_item">This month</item> <item translatable="yes" id="30_days_item">Past 30 days</item> <item translatable="yes" id="six_months_item">Past 180 days</item> |