diff options
| author | Joe Carstairs <me@joeac.net> | 2024-12-19 09:11:04 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2024-12-19 09:11:04 +0000 |
| commit | b6fc855a131f67cce42d6407540def729af087ec (patch) | |
| tree | ecc043587f1aba9ad50669c733e02c85029a39a8 /schist_gtk4_gui/resources/ui | |
| parent | 9e28aff1c045d7b31b6efb526a80b08048a23d99 (diff) | |
Factors out CategoriesView
Diffstat (limited to 'schist_gtk4_gui/resources/ui')
| -rw-r--r-- | schist_gtk4_gui/resources/ui/categories_view.ui | 10 | ||||
| -rw-r--r-- | schist_gtk4_gui/resources/ui/window.ui | 34 |
2 files changed, 44 insertions, 0 deletions
diff --git a/schist_gtk4_gui/resources/ui/categories_view.ui b/schist_gtk4_gui/resources/ui/categories_view.ui new file mode 100644 index 0000000..197fcb3 --- /dev/null +++ b/schist_gtk4_gui/resources/ui/categories_view.ui @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <template class="SchistCategoriesView" parent="GtkBox"> + <child> + <object class="GtkLabel"> + <property name="label">Hello, categories!</property> + </object> + </child> + </template> +</interface> diff --git a/schist_gtk4_gui/resources/ui/window.ui b/schist_gtk4_gui/resources/ui/window.ui new file mode 100644 index 0000000..2dcf4c8 --- /dev/null +++ b/schist_gtk4_gui/resources/ui/window.ui @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<interface> + <template class="SchistWindow" parent="GtkApplicationWindow"> + <property name="title">schist</property> + <property name="default-height">560</property> + <property name="default-width">1080</property> + <child type="titlebar"> + <object class="GtkHeaderBar" id="header_bar"> + <property name="title-widget"> + <object class="GtkStackSwitcher"> + <property name="stack">view_stack</property> + </object> + </property> + </object> + </child> + + <child> + <object class="GtkStack" id="view_stack"> + <child> + <object class="GtkStackPage"> + <property name="name">categories</property> + <property name="title">Categories</property> + <property name="child"> + <object + class="SchistCategoriesView" + id="categories_view" + /> + </property> + </object> + </child> + </object> + </child> + </template> +</interface> |
