diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-23 14:04:27 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-23 14:04:27 +0200 |
| commit | 5d8f799a1171f92054d4b45ba130cd7fdad0bd01 (patch) | |
| tree | 0f51290b3a60d71d25d7a49b66d5bd54dd7a4156 /gui/ui/src/tracker.ui | |
| parent | c45004b73bb045328a724d1d860df6d1515af6d4 (diff) | |
| download | turns-5d8f799a1171f92054d4b45ba130cd7fdad0bd01.tar.xz turns-5d8f799a1171f92054d4b45ba130cd7fdad0bd01.zip | |
app: prepare restructuring
Diffstat (limited to 'gui/ui/src/tracker.ui')
| -rw-r--r-- | gui/ui/src/tracker.ui | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/gui/ui/src/tracker.ui b/gui/ui/src/tracker.ui new file mode 100644 index 0000000..c4fe324 --- /dev/null +++ b/gui/ui/src/tracker.ui @@ -0,0 +1,153 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!-- Created with Cambalache 0.96.0 --> +<interface> + <!-- interface-name tracker.ui --> + <requires lib="gio" version="2.0"/> + <requires lib="gtk" version="4.18"/> + <requires lib="libadwaita" version="1.7"/> + <template class="gtkmm__CustomObject_Tracker" parent="AdwApplicationWindow"> + <property name="content"> + <object class="AdwToolbarView"> + <property name="content"> + <object class="AdwToastOverlay" id="overlay"> + <property name="child"> + <object class="GtkStack" id="stack"> + <child> + <object class="AdwStatusPage" id="empty"> + <property name="child"> + <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="pill"/> + <class name="suggested-action"/> + </style> + </object> + </property> + <property name="icon-name">contact-new-symbolic</property> + </object> + </child> + </object> + </property> + </object> + </property> + <child type="top"> + <object class="AdwHeaderBar" id="header"> + <property name="centering-policy">strict</property> + <property name="title-widget"> + <object class="AdwWindowTitle" id="title"> + <property name="hexpand">True</property> + <property name="subtitle" translatable="yes">No active turn order</property> + <property name="title" translatable="yes">Turns</property> + </object> + </property> + <child type="end"> + <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> + <property name="use-underline">True</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> + <child type="start"> + <object class="GtkButton" id="start"> + <property name="action-name">win.start</property> + <property name="icon-name">media-playback-start-symbolic</property> + <property name="tooltip-text" translatable="yes">Start turn order</property> + </object> + </child> + <style/> + </object> + </child> + <child type="bottom"> + <object class="GtkRevealer" id="controls"> + <property name="child"> + <object class="GtkActionBar"> + <child type="start"> + <object class="GtkButton"> + <property name="action-name">win.previous</property> + <property name="icon-name">media-skip-backward-symbolic</property> + <property name="tooltip-markup" translatable="yes">Previous participant</property> + <style> + <class name="pill"/> + <class name="suggested-action"/> + </style> + </object> + </child> + <child type="center"> + <object class="GtkButton"> + <property name="action-name">win.stop</property> + <property name="icon-name">media-playback-stop-symbolic</property> + <property name="tooltip-markup" translatable="yes">End turn order</property> + <style> + <class name="pill"/> + <class name="destructive-action"/> + </style> + </object> + </child> + <child type="end"> + <object class="GtkButton"> + <property name="action-name">win.next</property> + <property name="icon-name">media-skip-forward-symbolic</property> + <property name="tooltip-markup" translatable="yes">Next participant</property> + <style> + <class name="pill"/> + <class name="suggested-action"/> + </style> + </object> + </child> + <style> + <class name="toolbar"/> + </style> + </object> + </property> + <property name="transition-type">slide-up</property> + </object> + </child> + <style/> + </object> + </property> + <property name="default-height">720</property> + <property name="default-width">360</property> + <property name="height-request">480</property> + <property name="width-request">360</property> + </template> + <menu id="main_menu"> + <item> + <attribute name="action">win.clear</attribute> + <attribute name="label" translatable="yes">_Clear</attribute> + </item> + <item> + <attribute name="action">win.open</attribute> + <attribute name="label" translatable="yes">_Open...</attribute> + </item> + <item> + <attribute name="action">win.save</attribute> + <attribute name="label" translatable="yes">_Save</attribute> + </item> + <item> + <attribute name="action">win.save-as</attribute> + <attribute name="label" translatable="yes">Save as...</attribute> + </item> + <item> + <attribute name="action">win.preferences</attribute> + <attribute name="label" translatable="yes">_Preferences</attribute> + </item> + <item> + <attribute name="action">app.quit</attribute> + <attribute name="label" translatable="yes">_Quit</attribute> + </item> + <item> + <attribute name="action">app.about</attribute> + <attribute name="label">About</attribute> + </item> + </menu> +</interface> |
