diff options
| author | Matthew Fennell <matthew@fennell.dev> | 2025-12-27 12:40:20 +0000 |
|---|---|---|
| committer | Matthew Fennell <matthew@fennell.dev> | 2025-12-27 12:40:20 +0000 |
| commit | 5d8e439bc597159e3c9f0a8b65c0ae869dead3a8 (patch) | |
| tree | ed28aefed8add0da1c55c08fdf80b23c4346e0dc /src/gui/gtd-task-list-view.ui | |
Import Upstream version 43.0upstream/latest
Diffstat (limited to 'src/gui/gtd-task-list-view.ui')
| -rw-r--r-- | src/gui/gtd-task-list-view.ui | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/src/gui/gtd-task-list-view.ui b/src/gui/gtd-task-list-view.ui new file mode 100644 index 0000000..b283753 --- /dev/null +++ b/src/gui/gtd-task-list-view.ui @@ -0,0 +1,97 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <template class="GtdTaskListView" parent="GtkBox"> + <property name="vexpand">1</property> + <property name="orientation">vertical</property> + <style> + <class name="view" /> + </style> + + <!-- Main stack --> + <child> + <object class="GtkStack" id="main_stack"> + <property name="hexpand">true</property> + <property name="vexpand">true</property> + <property name="transition-type">crossfade</property> + + <!-- Task list page --> + <child> + <object class="GtkStackPage"> + <property name="name">task-list</property> + <property name="child"> + <object class="GtkScrolledWindow" id="scrolled_window"> + <property name="can_focus">1</property> + <property name="hexpand">1</property> + <property name="vexpand">1</property> + <property name="min-content-height">320</property> + <property name="hscrollbar-policy">never</property> + <child> + <object class="GtdWidget"> + <property name="hexpand">1</property> + <property name="vexpand">1</property> + <property name="halign">center</property> + <property name="layout-manager"> + <object class="GtdMaxSizeLayout"> + <property name="max-width">700</property> + </object> + </property> + <child> + <object class="GtkBox"> + <property name="margin-top">6</property> + <property name="margin-bottom">64</property> + <property name="margin-start">18</property> + <property name="margin-end">18</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkListBox" id="listbox"> + <property name="hexpand">1</property> + <property name="selection_mode">none</property> + <signal name="row-activated" handler="on_listbox_row_activated_cb" object="GtdTaskListView" swapped="no"/> + </object> + </child> + </object> + </child> + </object> + + </child> + </object> + + </property> + </object> + </child> + + <!-- Empty list widget --> + <child> + <object class="GtkStackPage"> + <property name="name">empty-list</property> + <property name="child"> + <object class="AdwStatusPage" id="empty_list_widget"> + <property name="title">Tasks Will Appear Here</property> + <property name="icon-name">all-done</property> + <layout> + <property name="measure">true</property> + </layout> + <child> + <object class="GtkButton" id="add_button"> + <property name="halign">center</property> + <property name="margin-top">24</property> + <property name="label">Add Tasks...</property> + <signal name="clicked" handler="on_empty_list_widget_add_tasks_cb" object="GtdTaskListView" swapped="no" /> + <style> + <class name="suggested-action"/> + <class name="pill"/> + </style> + </object> + </child> + </object> + </property> + </object> + </child> + + </object> + </child> + + </template> + <object class="GtkSizeGroup" id="tasklist_name_sizegroup"/> + <object class="GtkSizeGroup" id="due_date_sizegroup"/> +</interface> |
