Debian Codegraph @

demo/pages/split-views/adw-overlay-split-view-demo-dialog.ui

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <interface>
3 <requires lib="gtk" version="4.0"/>
4 <requires lib="libadwaita" version="1.0"/>
5 <template class="AdwOverlaySplitViewDemoDialog" parent="AdwDialog">
6 <property name="width-request">360</property>
7 <property name="height-request">200</property>
8 <property name="content-width">640</property>
9 <property name="content-height">480</property>
10 <property name="title" translatable="yes">Overlay Split View</property>
11 <child>
12 <object class="AdwBreakpoint">
13 <condition>max-width: 400sp</condition>
14 <setter object="split_view" property="collapsed">True</setter>
15 </object>
16 </child>
17 <property name="child">
18 <object class="AdwToolbarView">
19 <property name="top-bar-style">raised</property>
20 <child type="top">
21 <object class="AdwHeaderBar">
22 <child type="start">
23 <object class="GtkToggleButton" id="show_sidebar_button">
24 <property name="icon-name">view-sidebar-start-symbolic</property>
25 <property name="tooltip-text" translatable="yes">Toggle Sidebar</property>
26 <property name="active">True</property>
27 <property name="visible" bind-source="start_button" bind-property="active" bind-flags="sync-create"/>
28 </object>
29 </child>
30 <child type="end">
31 <object class="GtkToggleButton">
32 <property name="icon-name">view-sidebar-end-symbolic</property>
33 <property name="tooltip-text" translatable="yes">Toggle Sidebar</property>
34 <property name="active" bind-source="show_sidebar_button" bind-property="active" bind-flags="sync-create|bidirectional"/>
35 <property name="visible" bind-source="end_button" bind-property="active" bind-flags="sync-create"/>
36 </object>
37 </child>
38 </object>
39 </child>
40 <property name="content">
41 <object class="AdwOverlaySplitView" id="split_view">
42 <property name="show-sidebar" bind-source="show_sidebar_button" bind-property="active" bind-flags="sync-create|bidirectional"/>
43 <property name="sidebar">
44 <object class="AdwStatusPage">
45 <property name="title">Sidebar</property>
46 <property name="child">
47 <object class="GtkBox">
48 <property name="orientation">vertical</property>
49 <property name="spacing">18</property>
50 <property name="halign">center</property>
51 <child>
52 <object class="GtkToggleButton" id="start_button">
53 <property name="label" translatable="yes">Start</property>
54 <property name="can-shrink">True</property>
55 <property name="active">True</property>
56 <signal name="notify::active" handler="start_button_notify_active_cb" swapped="yes"/>
57 <style>
58 <class name="pill"/>
59 </style>
60 </object>
61 </child>
62 <child>
63 <object class="GtkToggleButton" id="end_button">
64 <property name="label" translatable="yes">End</property>
65 <property name="can-shrink">True</property>
66 <property name="group">start_button</property>
67 <style>
68 <class name="pill"/>
69 </style>
70 </object>
71 </child>
72 </object>
73 </property>
74 </object>
75 </property>
76 <property name="content">
77 <object class="AdwStatusPage">
78 <property name="title" translatable="yes">Content</property>
79 </object>
80 </property>
81 </object>
82 </property>
83 </object>
84 </property>
85 </template>
86 </interface>