Now About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/window.ui
blob: 58f26b4a907d00707d0304245c49dfce143f1c61 (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
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.0"/>
  <menu id="primary_menu">
    <section>
      <item>
        <attribute name="label" translatable="yes">_Disconnect</attribute>
        <attribute name="action">app.disconnect</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">_Preferences</attribute>
        <attribute name="action">app.preferences</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_About</attribute>
        <attribute name="action">app.about</attribute>
      </item>
    </section>
  </menu>
  <template class="WeegtkWindow" parent="AdwApplicationWindow">
    <property name="title" translatable="yes">Weegtk</property>
    <property name="default_width">800</property>
    <property name="default_height">576</property>
    <property name="width-request">360</property>
    <property name="height-request">294</property>
    <child>
      <object class="AdwBreakpoint">
        <condition>max-width: 560</condition>
        <setter object="split_view" property="collapsed">True</setter>
      </object>
    </child>
    <property name="content">
      <object class="AdwToastOverlay" id="toast_overlay">
        <property name="child">
          <object class="AdwNavigationSplitView" id="split_view">
            <property name="min-sidebar-width">200</property>
            <property name="sidebar">
              <object class="AdwNavigationPage">
                <property name="title" bind-source="WeegtkWindow" bind-property="title" bind-flags="sync-create"/>
                <property name="child">
                  <object class="AdwToolbarView">
                    <child type="top">
                      <object class="AdwHeaderBar">
                        <child type="start">
                          <object class="GtkButton" id="color_scheme_button">
                            <binding name="icon-name">
                              <closure type="gchararray" function="get_color_scheme_icon_name">
                                <lookup name="dark" type="AdwStyleManager">
                                  <lookup name="style-manager" type="AdwApplication">
                                    <lookup name="application">WeegtkWindow</lookup>
                                  </lookup>
                                </lookup>
                              </closure>
                            </binding>
                            <signal name="clicked" handler="color_scheme_button_clicked_cb" swapped="no"/>
                          </object>
                        </child>
                        <child type="end">
                          <object class="GtkMenuButton">
                            <property name="tooltip-text" translatable="yes">Main Menu</property>
                            <property name="menu-model">primary_menu</property>
                            <property name="icon-name">open-menu-symbolic</property>
                            <property name="primary">True</property>
                          </object>
                        </child>
                      </object>
                    </child>
                    <property name="content">
                      <object class="GtkStackSidebar">
                        <property name="stack">stack</property>
                      </object>
                    </property>
                  </object>
                </property>
              </object>
            </property>
            <property name="content">
              <object class="AdwNavigationPage" id="content_page">
                <property name="child">
                  <object class="GtkStack" id="stack">
                    <property name="vhomogeneous">False</property>
                    <signal name="notify::visible-child" handler="notify_visible_child_cb" after="yes" swapped="no"/>
                  </object>
                </property>
              </object>
            </property>
          </object>
        </property>
      </object>
    </property>
  </template>
</interface>