diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2022-04-22 10:30:19 +0300 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2022-04-22 10:30:19 +0300 |
commit | e3bb347a12ad929619a51b37f0ca48dcfe46b731 (patch) | |
tree | 643d2b973b003e91762af519620e34065953da64 /src/gtk | |
parent | 22b05e7c934aee734005e7ba601968334467005c (diff) | |
download | Furtherance-e3bb347a12ad929619a51b37f0ca48dcfe46b731.tar.zst |
Add tags to tasks (Issue #8)
Diffstat (limited to 'src/gtk')
-rwxr-xr-x | src/gtk/preferences_window.ui | 27 | ||||
-rwxr-xr-x | src/gtk/task_row.ui | 34 | ||||
-rwxr-xr-x | src/gtk/window.ui | 2 |
3 files changed, 47 insertions, 16 deletions
diff --git a/src/gtk/preferences_window.ui b/src/gtk/preferences_window.ui index 5c6140c..e288c52 100755 --- a/src/gtk/preferences_window.ui +++ b/src/gtk/preferences_window.ui @@ -63,6 +63,18 @@ <property name="title" translatable="yes">Task List</property> <property name="visible">True</property> <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="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> @@ -93,11 +105,11 @@ </child> <child> <object class="AdwActionRow"> - <property name="title" translatable="yes">_Delete confirmation</property> + <property name="title" translatable="yes">Show daily sums</property> <property name="use_underline">True</property> - <property name="activatable_widget">delete_confirmation_switch</property> + <property name="activatable_widget">show_daily_sums_switch</property> <child> - <object class="GtkSwitch" id="delete_confirmation_switch"> + <object class="GtkSwitch" id="show_daily_sums_switch"> <property name="valign">center</property> </object> </child> @@ -116,18 +128,21 @@ </child> </object> </child> + <child> <object class="AdwActionRow"> - <property name="title" translatable="yes">Show daily sums</property> + <property name="title" translatable="yes">Show tags</property> <property name="use_underline">True</property> - <property name="activatable_widget">show_daily_sums_switch</property> + <property name="activatable_widget">show_tags_switch</property> + <property name="subtitle" translatable="yes">Tags are saved, just not shown</property> <child> - <object class="GtkSwitch" id="show_daily_sums_switch"> + <object class="GtkSwitch" id="show_tags_switch"> <property name="valign">center</property> </object> </child> </object> </child> + </object> </child> </object> diff --git a/src/gtk/task_row.ui b/src/gtk/task_row.ui index edd2899..f5de3a5 100755 --- a/src/gtk/task_row.ui +++ b/src/gtk/task_row.ui @@ -2,7 +2,7 @@ <interface> <template class="FurTaskRow" parent="GtkListBoxRow"> <child> - <object class="GtkBox"> + <object class="GtkBox" id="row_box"> <property name="orientation">horizontal</property> <property name="margin_top">10</property> <property name="margin_bottom">10</property> @@ -13,14 +13,30 @@ <property name="valign">center</property> <property name="homogeneous">True</property> <child> - <object class="GtkLabel" id="task_name_label"> - <property name="halign">start</property> - <property name="label" translatable="yes">Task</property> - <property name="ellipsize">end</property> - <property name="single_line_mode">True</property> - <style> - <class name="heading"/> - </style> + <object class="GtkBox"> + <property name="orientation">vertical</property> + <property name="spacing">3</property> + <child> + <object class="GtkLabel" id="task_name_label"> + <property name="halign">start</property> + <property name="label" translatable="yes">Task</property> + <property name="ellipsize">end</property> + <property name="single_line_mode">True</property> + <style> + <class name="heading"/> + </style> + </object> + </child> + <child> + <object class="GtkLabel" id="task_tags_label"> + <property name="halign">start</property> + <property name="ellipsize">end</property> + <property name="single_line_mode">True</property> + <style> + <class name="subtitle"/> + </style> + </object> + </child> </object> </child> <child> diff --git a/src/gtk/window.ui b/src/gtk/window.ui index 4da1cd3..7317b55 100755 --- a/src/gtk/window.ui +++ b/src/gtk/window.ui @@ -55,7 +55,7 @@ <property name="margin_end">8</property> <child> <object class="GtkEntry" id="task_input"> - <property name="placeholder-text" translatable="yes">Task Name</property> + <property name="placeholder-text" translatable="yes">Task Name #Tags</property> <property name="hexpand">True</property> <property name="hexpand-set">True</property> </object> |