| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<menu id="menu"> |
| 4 |
<section> |
| 5 |
<item> |
| 6 |
<attribute name="label" translatable="yes">_Check for New Episodes</attribute> |
| 7 |
<attribute name="action">win.refresh</attribute> |
| 8 |
<attribute name="accel"><primary>r</attribute> |
| 9 |
</item> |
| 10 |
<item> |
| 11 |
<!-- Translators: Show as a noun, meaning Podcast-Shows. --> |
| 12 |
<attribute name="label" translatable="yes">_Import Shows</attribute> |
| 13 |
<attribute name="action">win.import</attribute> |
| 14 |
</item> |
| 15 |
<item> |
| 16 |
<!-- Translators: Show as a noun, meaning Podcast-Shows. --> |
| 17 |
<attribute name="label" translatable="yes">_Export Shows</attribute> |
| 18 |
<attribute name="action">win.export</attribute> |
| 19 |
</item> |
| 20 |
</section> |
| 21 |
<section> |
| 22 |
<item> |
| 23 |
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute> |
| 24 |
<attribute name="action">app.shortcuts</attribute> |
| 25 |
</item> |
| 26 |
<item> |
| 27 |
<attribute name="label" translatable="yes">_About Podcasts</attribute> |
| 28 |
<attribute name="action">win.about</attribute> |
| 29 |
</item> |
| 30 |
</section> |
| 31 |
</menu> |
| 32 |
<template class="PdMainWindow" parent="AdwApplicationWindow"> |
| 33 |
<property name="width-request">360</property> |
| 34 |
<property name="height-request">294</property> |
| 35 |
<property name="title" translatable="yes">Podcasts</property> |
| 36 |
<child> |
| 37 |
<object class="AdwBreakpoint" id="player_breakpoint"> |
| 38 |
<condition>min-width: 800sp</condition> |
| 39 |
</object> |
| 40 |
</child> |
| 41 |
<child> |
| 42 |
<object class="AdwBreakpoint"> |
| 43 |
<condition>max-width: 800sp</condition> |
| 44 |
<setter object="multi_layout_view" property="layout-name">narrow</setter> |
| 45 |
</object> |
| 46 |
</child> |
| 47 |
<child> |
| 48 |
<object class="AdwBreakpoint" id="header_breakpoint"> |
| 49 |
<condition>max-width: 550sp</condition> |
| 50 |
<setter object="main_header" property="title-widget"/> |
| 51 |
<setter object="multi_layout_view" property="layout-name">narrow</setter> |
| 52 |
</object> |
| 53 |
</child> |
| 54 |
<property name="content"> |
| 55 |
<object class="AdwToastOverlay" id="toast_overlay"> |
| 56 |
<property name="child"> |
| 57 |
<object class="AdwMultiLayoutView" id="multi_layout_view"> |
| 58 |
<child> |
| 59 |
<object class="AdwLayout"> |
| 60 |
<property name="name">wide</property> |
| 61 |
<property name="content"> |
| 62 |
<object class="AdwToolbarView" id="player_toolbar_view"> |
| 63 |
<child> |
| 64 |
<object class="AdwLayoutSlot"> |
| 65 |
<property name="id">content</property> |
| 66 |
</object> |
| 67 |
</child> |
| 68 |
<child type="bottom"> |
| 69 |
<object class="AdwLayoutSlot"> |
| 70 |
<property name="id">toolbar</property> |
| 71 |
</object> |
| 72 |
</child> |
| 73 |
</object> |
| 74 |
</property> |
| 75 |
</object> |
| 76 |
</child> |
| 77 |
<child> |
| 78 |
<object class="AdwLayout"> |
| 79 |
<property name="name">narrow</property> |
| 80 |
<property name="content"> |
| 81 |
<object class="AdwBottomSheet" id="bottom_sheet"> |
| 82 |
<property name="can-open">False</property> |
| 83 |
<property name="content"> |
| 84 |
<object class="AdwLayoutSlot"> |
| 85 |
<property name="id">content</property> |
| 86 |
<property name="margin-bottom" bind-source="bottom_sheet" bind-property="bottom-bar-height"/> |
| 87 |
</object> |
| 88 |
</property> |
| 89 |
<property name="bottom-bar"> |
| 90 |
<object class="AdwLayoutSlot"> |
| 91 |
<property name="id">toolbar</property> |
| 92 |
</object> |
| 93 |
</property> |
| 94 |
</object> |
| 95 |
</property> |
| 96 |
</object> |
| 97 |
</child> |
| 98 |
<child type="content"> |
| 99 |
<object class="AdwNavigationView" id="navigation_view"> |
| 100 |
<child> |
| 101 |
<object class="AdwNavigationPage"> |
| 102 |
<property name="title" translatable="yes">Podcasts</property> |
| 103 |
<property name="tag">content</property> |
| 104 |
<property name="child"> |
| 105 |
<object class="AdwToolbarView" id="content_view"> |
| 106 |
<child type="top"> |
| 107 |
<object class="AdwHeaderBar" id="main_header"> |
| 108 |
<property name="title-widget"> |
| 109 |
<object class="AdwViewSwitcher" id="top_switcher"> |
| 110 |
<property name="policy">wide</property> |
| 111 |
</object> |
| 112 |
</property> |
| 113 |
<child> |
| 114 |
<object class="GtkButton"> |
| 115 |
<property name="tooltip-text" translatable="yes">Add a New Feed</property> |
| 116 |
<property name="icon-name">list-add-symbolic</property> |
| 117 |
<property name="action-name">win.go-to-discovery</property> |
| 118 |
</object> |
| 119 |
</child> |
| 120 |
<child type="end"> |
| 121 |
<object class="GtkMenuButton" id="hamburger"> |
| 122 |
<property name="icon-name">open-menu-symbolic</property> |
| 123 |
<property name="tooltip-text" translatable="yes">Main Menu</property> |
| 124 |
<property name="primary">True</property> |
| 125 |
<property name="menu-model">menu</property> |
| 126 |
</object> |
| 127 |
</child> |
| 128 |
</object> |
| 129 |
</child> |
| 130 |
</object> |
| 131 |
</property> |
| 132 |
</object> |
| 133 |
</child> |
| 134 |
<child> |
| 135 |
<object class="AdwNavigationPage" id="show_page"> |
| 136 |
<!-- Translators: Show as a noun, meaning a Podcast-Show. --> |
| 137 |
<property name="title" translatable="yes">Show</property> |
| 138 |
<property name="tag">show</property> |
| 139 |
</object> |
| 140 |
</child> |
| 141 |
</object> |
| 142 |
</child> |
| 143 |
<child type="toolbar"> |
| 144 |
<object class="GtkBox" id="toolbar_box"> |
| 145 |
<property name="orientation">vertical</property> |
| 146 |
<child> |
| 147 |
<object class="GtkCenterBox" id="bottom_switcher_bar"> |
| 148 |
<property name="visible">False</property> |
| 149 |
<property name="center-widget"> |
| 150 |
<object class="AdwViewSwitcher" id="bottom_switcher"/> |
| 151 |
</property> |
| 152 |
<style> |
| 153 |
<class name="toolbar"/> |
| 154 |
</style> |
| 155 |
</object> |
| 156 |
</child> |
| 157 |
</object> |
| 158 |
</child> |
| 159 |
</object> |
| 160 |
</property> |
| 161 |
</object> |
| 162 |
</property> |
| 163 |
</template> |
| 164 |
</interface> |