diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-14 21:30:56 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-14 21:33:04 +0200 |
| commit | 05da3897f944f5775d25de2136ea985d4b0078eb (patch) | |
| tree | fd817901681a745f75234979168f391310141797 /res/windows/main.ui | |
| parent | d462e0e4d25d595175160c407e02a84155441983 (diff) | |
| download | turns-05da3897f944f5775d25de2136ea985d4b0078eb.tar.xz turns-05da3897f944f5775d25de2136ea985d4b0078eb.zip | |
app/ui: show status view when turn order is empty
Diffstat (limited to 'res/windows/main.ui')
| -rw-r--r-- | res/windows/main.ui | 50 |
1 files changed, 36 insertions, 14 deletions
diff --git a/res/windows/main.ui b/res/windows/main.ui index 56ffc40..4732022 100644 --- a/res/windows/main.ui +++ b/res/windows/main.ui @@ -9,26 +9,45 @@ <property name="content"> <object class="AdwToolbarView"> <property name="content"> - <object class="GtkScrolledWindow"> - <property name="child"> - <object class="AdwClamp"> + <object class="GtkStack" id="stack"> + <property name="transition-type">crossfade</property> + <child> + <object class="AdwStatusPage" id="empty"> <property name="child"> - <object class="GtkListBox" id="participant_list"> - <property name="selection-mode">none</property> + <object class="GtkButton"> + <property name="action-name">win.add_participant</property> + <property name="halign">center</property> + <property name="label" translatable="yes">Add participant</property> <style> - <class name="boxed-list"/> + <class name="pill"/> + <class name="suggested-action"/> </style> </object> </property> - <property name="margin-bottom">18</property> - <property name="margin-end">12</property> - <property name="margin-start">12</property> - <property name="margin-top">18</property> - <property name="valign">start</property> - <style/> + <property name="icon-name">contact-new-symbolic</property> </object> - </property> - <property name="vexpand">True</property> + </child> + <child> + <object class="GtkScrolledWindow" id="turn_order"> + <property name="child"> + <object class="AdwClamp"> + <property name="child"> + <object class="GtkListBox" id="participant_list"> + <property name="selection-mode">none</property> + <style> + <class name="boxed-list"/> + </style> + </object> + </property> + <property name="margin-bottom">18</property> + <property name="margin-end">12</property> + <property name="margin-start">12</property> + <property name="margin-top">18</property> + <property name="valign">start</property> + </object> + </property> + </object> + </child> </object> </property> <child type="top"> @@ -42,11 +61,14 @@ <object class="GtkMenuButton" id="open_main_menu"> <property name="icon-name">open-menu</property> <property name="menu-model">main_menu</property> + <property name="tooltip-text" translatable="yes">Main Menu</property> </object> </child> <child type="start"> <object class="GtkButton" id="add_participant"> + <property name="action-name">win.add_participant</property> <property name="icon-name">contact-new</property> + <property name="tooltip-text" translatable="yes">Add participant</property> </object> </child> <style/> |
