File: navigation-view-example.ui

package info (click to toggle)
libadwaita-1 1.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,272 kB
  • sloc: ansic: 86,112; xml: 189; python: 60; sh: 30; makefile: 21; javascript: 9
file content (111 lines) | stat: -rw-r--r-- 4,272 bytes parent folder | download | duplicates (2)
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.0"/>
  <object class="GtkBox" id="widget">
    <property name="spacing">12</property>
    <property name="homogeneous">True</property>
    <property name="width-request">600</property>
    <property name="height-request">200</property>
    <child>
      <object class="AdwNavigationView">
        <style>
          <class name="docs-background"/>
        </style>
        <child>
          <object class="AdwNavigationPage">
            <property name="title">Page 1</property>
            <property name="child">
              <object class="AdwToolbarView">
                <child type="top">
                  <object class="AdwHeaderBar">
                    <property name="show-start-title-buttons">False</property>
                    <property name="show-end-title-buttons">False</property>
                  </object>
                </child>
                <property name="content">
                  <object class="GtkButton">
                    <property name="label">Open Page 2</property>
                    <property name="halign">center</property>
                    <property name="valign">center</property>
                    <property name="action-name">navigation.push</property>
                    <property name="action-target">'page-2'</property>
                    <style>
                      <class name="pill"/>
                    </style>
                  </object>
                </property>
              </object>
            </property>
          </object>
        </child>
        <child>
          <object class="AdwNavigationPage">
            <property name="title">Page 2</property>
            <property name="tag">page-2</property>
            <property name="child">
              <object class="AdwToolbarView">
                <child type="top">
                  <object class="AdwHeaderBar">
                    <property name="show-start-title-buttons">False</property>
                    <property name="show-end-title-buttons">False</property>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="AdwNavigationView">
        <style>
          <class name="docs-background"/>
        </style>
        <child>
          <object class="AdwNavigationPage">
            <property name="title">Page 1</property>
            <property name="child">
              <object class="AdwToolbarView">
                <child type="top">
                  <object class="AdwHeaderBar">
                    <property name="show-start-title-buttons">False</property>
                    <property name="show-end-title-buttons">False</property>
                  </object>
                </child>
                <property name="content">
                  <object class="GtkButton">
                    <property name="label">Open Page 2</property>
                    <property name="halign">center</property>
                    <property name="valign">center</property>
                    <property name="action-name">navigation.push</property>
                    <property name="action-target">'page-2'</property>
                    <style>
                      <class name="pill"/>
                    </style>
                  </object>
                </property>
              </object>
            </property>
          </object>
        </child>
        <child>
          <object class="AdwNavigationPage" id="nav-page">
            <property name="title">Page 2</property>
            <property name="tag">page-2</property>
            <property name="child">
              <object class="AdwToolbarView">
                <child type="top">
                  <object class="AdwHeaderBar">
                    <property name="show-start-title-buttons">False</property>
                    <property name="show-end-title-buttons">False</property>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>