summaryrefslogtreecommitdiff
path: root/res/windows/main.ui
blob: 47320224a751ea871cc3fe9002279384bbbddccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 0.90.4 -->
<interface>
  <!-- interface-name main_window.ui -->
  <requires lib="gtk" version="4.14"/>
  <requires lib="libadwaita" version="1.5"/>
  <requires lib="gio" version="2.0"/>
  <object class="AdwApplicationWindow" id="main">
    <property name="content">
      <object class="AdwToolbarView">
        <property name="content">
          <object class="GtkStack" id="stack">
            <property name="transition-type">crossfade</property>
            <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>
            <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">
          <object class="AdwHeaderBar" id="header">
            <property name="title-widget">
              <object class="AdwWindowTitle" id="title">
                <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>
              </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/>
          </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">app.quit</attribute>
      <attribute name="label" translatable="yes">_Quit</attribute>
    </item>
  </menu>
</interface>