summaryrefslogtreecommitdiff
path: root/ui/src/tracker.ui
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-04-29 16:33:32 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-04-29 16:33:32 +0200
commit3ff5bd46952144926d9bd9beedf50023a51913ee (patch)
tree2c579fe13bbb5cc90f8f50e7af35218c98e123d5 /ui/src/tracker.ui
parent873bf396b904ce477a238f22d1891e1b03f24eff (diff)
downloadturns-3ff5bd46952144926d9bd9beedf50023a51913ee.tar.xz
turns-3ff5bd46952144926d9bd9beedf50023a51913ee.zip
ui: flatten namespace hierarchy
Diffstat (limited to 'ui/src/tracker.ui')
-rw-r--r--ui/src/tracker.ui153
1 files changed, 153 insertions, 0 deletions
diff --git a/ui/src/tracker.ui b/ui/src/tracker.ui
new file mode 100644
index 0000000..b875d10
--- /dev/null
+++ b/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"/>
+ <object class="AdwApplicationWindow" id="tracker">
+ <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>
+ </object>
+ <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>