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
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="SwApplicationWindow" parent="AdwApplicationWindow">
<property name="width_request">360</property>
<property name="height_request">100</property>
<property name="title">Shortwave</property>
<child>
<object class="AdwBreakpoint" id="narrow_breakpoint">
<condition>max-width: 625px</condition>
<setter object="multi_layout_view" property="layout-name">narrow</setter>
<setter object="player_view" property="show-gadget-button">False</setter>
</object>
</child>
<child>
<object class="AdwBreakpoint" id="gadget_breakpoint">
<condition>max-height: 165px</condition>
<setter object="stack" property="visible-child">gadget_handle</setter>
</object>
</child>
<child>
<object class="GtkStack" id="stack">
<property name="hhomogeneous">False</property>
<property name="vhomogeneous">False</property>
<child>
<object class="AdwToastOverlay" id="toast_overlay">
<child>
<object class="AdwMultiLayoutView" id="multi_layout_view">
<child>
<object class="AdwLayout">
<property name="name">wide</property>
<property name="content">
<object class="AdwOverlaySplitView" id="split_view">
<property name="sidebar-position">end</property>
<property name="min-sidebar-width">300</property>
<property name="max-sidebar-width">350</property>
<property name="enable-hide-gesture">False</property>
<property name="enable-show-gesture">False</property>
<property name="content">
<object class="AdwLayoutSlot">
<property name="id">main_view</property>
</object>
</property>
<property name="sidebar">
<object class="AdwLayoutSlot">
<property name="id">player_view</property>
</object>
</property>
</object>
</property>
</object>
</child>
<child>
<object class="AdwLayout">
<property name="name">narrow</property>
<property name="content">
<object class="AdwBottomSheet" id="bottom_sheet">
<property name="bottom-bar">
<object class="SwPlayerToolbar" id="player_toolbar"/>
</property>
<property name="content">
<object class="AdwLayoutSlot">
<property name="id">main_view</property>
<property name="margin-bottom" bind-source="bottom_sheet" bind-property="bottom-bar-height"/>
</object>
</property>
<property name="sheet">
<object class="AdwLayoutSlot">
<property name="id">player_view</property>
</object>
</property>
</object>
</property>
</object>
</child>
<child type="main_view">
<object class="AdwNavigationView" id="navigation_view">
<child>
<object class="SwLibraryPage" id="library_page" />
</child>
<child>
<object class="SwSearchPage" id="search_page" />
</child>
</object>
</child>
<child type="player_view">
<object class="SwPlayerView" id="player_view" />
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkWindowHandle" id="gadget_handle">
<child>
<object class="SwPlayerGadget" id="player_gadget" />
</child>
</object>
</child>
</object>
</child>
</template>
</interface>
|