| 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="AdwNavigationSplitViewDemoDialog" 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">Navigation 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 |
<setter object="button" property="visible">True</setter> |
| 16 |
</object> |
| 17 |
</child> |
| 18 |
<property name="child"> |
| 19 |
<object class="AdwNavigationSplitView" id="split_view"> |
| 20 |
<property name="sidebar"> |
| 21 |
<object class="AdwNavigationPage"> |
| 22 |
<property name="title" translatable="yes">Sidebar</property> |
| 23 |
<property name="tag">sidebar</property> |
| 24 |
<property name="child"> |
| 25 |
<object class="AdwToolbarView"> |
| 26 |
<child type="top"> |
| 27 |
<object class="AdwHeaderBar"> |
| 28 |
<property name="show-title">False</property> |
| 29 |
</object> |
| 30 |
</child> |
| 31 |
<property name="content"> |
| 32 |
<object class="AdwStatusPage"> |
| 33 |
<property name="title">Sidebar</property> |
| 34 |
<property name="child"> |
| 35 |
<object class="GtkButton" id="button"> |
| 36 |
<property name="visible">False</property> |
| 37 |
<property name="halign">center</property> |
| 38 |
<property name="label" translatable="yes">Open Content</property> |
| 39 |
<property name="can-shrink">True</property> |
| 40 |
<property name="action-name">navigation.push</property> |
| 41 |
<property name="action-target">'content'</property> |
| 42 |
<style> |
| 43 |
<class name="pill"/> |
| 44 |
</style> |
| 45 |
</object> |
| 46 |
</property> |
| 47 |
</object> |
| 48 |
</property> |
| 49 |
</object> |
| 50 |
</property> |
| 51 |
</object> |
| 52 |
</property> |
| 53 |
<property name="content"> |
| 54 |
<object class="AdwNavigationPage"> |
| 55 |
<property name="title" translatable="yes">Content</property> |
| 56 |
<property name="tag">content</property> |
| 57 |
<property name="child"> |
| 58 |
<object class="AdwToolbarView"> |
| 59 |
<child type="top"> |
| 60 |
<object class="AdwHeaderBar"> |
| 61 |
<property name="show-title">False</property> |
| 62 |
</object> |
| 63 |
</child> |
| 64 |
<property name="content"> |
| 65 |
<object class="AdwStatusPage"> |
| 66 |
<property name="title" translatable="yes">Content</property> |
| 67 |
</object> |
| 68 |
</property> |
| 69 |
</object> |
| 70 |
</property> |
| 71 |
</object> |
| 72 |
</property> |
| 73 |
</object> |
| 74 |
</property> |
| 75 |
</template> |
| 76 |
</interface> |