| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<template class="FrgConnectionBox" parent="GtkBox"> |
| 4 |
<property name="orientation">vertical</property> |
| 5 |
<child> |
| 6 |
<object class="AdwBanner" id="invalid_dir_banner"> |
| 7 |
<property name="revealed">False</property> |
| 8 |
<property name="button-label" translatable="yes">Preferences</property> |
| 9 |
<property name="action_name">app.show-preferences</property> |
| 10 |
</object> |
| 11 |
</child> |
| 12 |
<child> |
| 13 |
<object class="FrgDragOverlay" id="drag_overlay"> |
| 14 |
<property name="child"> |
| 15 |
<object class="GtkStack" id="stack"> |
| 16 |
<property name="transition_type">crossfade</property> |
| 17 |
<property name="hexpand">True</property> |
| 18 |
<property name="vexpand">True</property> |
| 19 |
<child> |
| 20 |
<object class="GtkDropTarget" id="drop_target"> |
| 21 |
<property name="actions">copy</property> |
| 22 |
</object> |
| 23 |
</child> |
| 24 |
<child> |
| 25 |
<object class="GtkStackPage"> |
| 26 |
<property name="name">loading</property> |
| 27 |
<property name="child"> |
| •28 |
<object class="AdwSpinner" /> |
| 29 |
</property> |
| 30 |
</object> |
| 31 |
</child> |
| 32 |
<child> |
| 33 |
<object class="GtkStackPage"> |
| 34 |
<property name="name">torrents</property> |
| 35 |
<property name="child"> |
| 36 |
<object class="FrgTorrentPage" id="torrent_page" /> |
| 37 |
</property> |
| 38 |
</object> |
| 39 |
</child> |
| 40 |
<child> |
| 41 |
<object class="GtkStackPage"> |
| 42 |
<property name="name">empty</property> |
| 43 |
<property name="child"> |
| 44 |
<object class="GtkBox" /> |
| 45 |
</property> |
| 46 |
</object> |
| 47 |
</child> |
| 48 |
<child> |
| 49 |
<object class="GtkStackPage"> |
| 50 |
<property name="name">metered</property> |
| 51 |
<property name="child"> |
| 52 |
<object class="AdwStatusPage"> |
| 53 |
<property name="title" translatable="yes">Metered Network</property> |
| 54 |
<property name="description" translatable="yes">Torrents have been paused to save data, as metered networks have data limits or charges associated with them.</property> |
| 55 |
<property name="icon_name">dialog-warning-symbolic</property> |
| 56 |
<property name="child"> |
| 57 |
<object class="GtkButton"> |
| 58 |
<property name="label" translatable="yes">Resume Torrents</property> |
| 59 |
<property name="halign">center</property> |
| 60 |
<signal name="clicked" handler="allow_metered_clicked" swapped="true" /> |
| 61 |
<style> |
| 62 |
<class name="pill" /> |
| 63 |
<class name="destructive-action" /> |
| 64 |
</style> |
| 65 |
</object> |
| 66 |
</property> |
| 67 |
</object> |
| 68 |
</property> |
| 69 |
</object> |
| 70 |
</child> |
| 71 |
<child> |
| 72 |
<object class="GtkStackPage"> |
| 73 |
<property name="name">ready</property> |
| 74 |
<property name="child"> |
| 75 |
<object class="AdwStatusPage" id="welcome_status_page"> |
| 76 |
<property name="title" translatable="yes">Get Some Torrents</property> |
| 77 |
<property name="icon_name">de.haeckerfelix.Fragments</property> |
| 78 |
<style> |
| 79 |
<class name="icon-dropshadow" /> |
| 80 |
</style> |
| 81 |
<property name="child"> |
| 82 |
<object class="GtkBox"> |
| 83 |
<property name="orientation">vertical</property> |
| 84 |
<child> |
| 85 |
<object class="AdwClamp"> |
| 86 |
<property name="maximum-size">400</property> |
| 87 |
<property name="tightening-threshold">300</property> |
| 88 |
<child> |
| 89 |
<object class="GtkBox"> |
| 90 |
<property name="margin-top">12</property> |
| 91 |
<property name="orientation">vertical</property> |
| 92 |
<property name="spacing">6</property> |
| 93 |
<child> |
| 94 |
<object class="GtkGrid"> |
| 95 |
<property name="halign">center</property> |
| 96 |
<property name="row_spacing">16</property> |
| 97 |
<property name="column_spacing">12</property> |
| 98 |
<property name="margin_bottom">32</property> |
| 99 |
<child> |
| 100 |
<object class="GtkImage"> |
| 101 |
<property name="icon_name">emblem-shared-symbolic</property> |
| 102 |
<property name="accessible-role">presentation</property> |
| 103 |
<layout> |
| 104 |
<property name="column">0</property> |
| 105 |
<property name="row">0</property> |
| 106 |
</layout> |
| 107 |
</object> |
| 108 |
</child> |
| 109 |
<child> |
| 110 |
<object class="GtkImage"> |
| 111 |
<property name="icon_name">edit-copy-symbolic</property> |
| 112 |
<property name="accessible-role">presentation</property> |
| 113 |
<layout> |
| 114 |
<property name="column">0</property> |
| 115 |
<property name="row">1</property> |
| 116 |
</layout> |
| 117 |
</object> |
| 118 |
</child> |
| 119 |
<child> |
| 120 |
<object class="GtkImage"> |
| 121 |
<property name="icon_name">list-add-symbolic</property> |
| 122 |
<property name="accessible-role">presentation</property> |
| 123 |
<layout> |
| 124 |
<property name="column">0</property> |
| 125 |
<property name="row">2</property> |
| 126 |
</layout> |
| 127 |
</object> |
| 128 |
</child> |
| 129 |
<child> |
| 130 |
<object class="GtkImage"> |
| 131 |
<property name="icon_name">dotted-box-symbolic</property> |
| 132 |
<property name="accessible-role">presentation</property> |
| 133 |
<layout> |
| 134 |
<property name="column">0</property> |
| 135 |
<property name="row">3</property> |
| 136 |
</layout> |
| 137 |
</object> |
| 138 |
</child> |
| 139 |
<child> |
| 140 |
<object class="GtkLabel"> |
| 141 |
<property name="halign">start</property> |
| 142 |
<property name="label" translatable="yes">Click a torrent link on a website</property> |
| 143 |
<property name="natural_wrap_mode">none</property> |
| 144 |
<property name="wrap">True</property> |
| 145 |
<property name="xalign">0</property> |
| 146 |
<layout> |
| 147 |
<property name="column">1</property> |
| 148 |
<property name="row">0</property> |
| 149 |
</layout> |
| 150 |
</object> |
| 151 |
</child> |
| 152 |
<child> |
| 153 |
<object class="GtkLabel"> |
| 154 |
<property name="halign">start</property> |
| 155 |
<property name="label" translatable="yes">Copy a torrent link to the clipboard</property> |
| 156 |
<property name="natural_wrap_mode">none</property> |
| 157 |
<property name="wrap">True</property> |
| 158 |
<property name="xalign">0</property> |
| 159 |
<layout> |
| 160 |
<property name="column">1</property> |
| 161 |
<property name="row">1</property> |
| 162 |
</layout> |
| 163 |
</object> |
| 164 |
</child> |
| 165 |
<child> |
| 166 |
<object class="GtkLabel"> |
| 167 |
<property name="halign">start</property> |
| 168 |
<property name="label" translatable="yes">Choose a torrent file</property> |
| 169 |
<property name="natural_wrap_mode">none</property> |
| 170 |
<property name="wrap">True</property> |
| 171 |
<property name="xalign">0</property> |
| 172 |
<layout> |
| 173 |
<property name="column">1</property> |
| 174 |
<property name="row">2</property> |
| 175 |
</layout> |
| 176 |
</object> |
| 177 |
</child> |
| 178 |
<child> |
| 179 |
<object class="GtkLabel"> |
| 180 |
<property name="halign">start</property> |
| 181 |
<property name="label" translatable="yes">Drag and drop a torrent</property> |
| 182 |
<property name="natural_wrap_mode">none</property> |
| 183 |
<property name="wrap">True</property> |
| 184 |
<property name="xalign">0</property> |
| 185 |
<layout> |
| 186 |
<property name="column">1</property> |
| 187 |
<property name="row">3</property> |
| 188 |
</layout> |
| 189 |
</object> |
| 190 |
</child> |
| 191 |
<style> |
| 192 |
<class name="dim-label" /> |
| 193 |
</style> |
| 194 |
</object> |
| 195 |
</child> |
| 196 |
</object> |
| 197 |
</child> |
| 198 |
</object> |
| 199 |
</child> |
| 200 |
</object> |
| 201 |
</property> |
| 202 |
</object> |
| 203 |
</property> |
| 204 |
</object> |
| 205 |
</child> |
| 206 |
<child> |
| 207 |
<object class="GtkStackPage"> |
| 208 |
<property name="name">authentication</property> |
| 209 |
<property name="child"> |
| 210 |
<object class="AdwStatusPage" id="authentication_status_page"> |
| 211 |
<property name="title" translatable="yes">Authentication required</property> |
| 212 |
<property name="icon_name">dialog-password-symbolic</property> |
| 213 |
<property name="child"> |
| 214 |
<object class="AdwClamp"> |
| 215 |
<property name="maximum_size">375</property> |
| 216 |
<child> |
| 217 |
<object class="GtkBox"> |
| 218 |
<property name="orientation">vertical</property> |
| 219 |
<property name="spacing">24</property> |
| 220 |
<child> |
| 221 |
<object class="GtkListBox"> |
| 222 |
<property name="width_request">300</property> |
| 223 |
<child> |
| 224 |
<object class="AdwEntryRow" id="username_row"> |
| 225 |
<property name="activates_default">True</property> |
| 226 |
<property name="title" translatable="yes">Username</property> |
| 227 |
</object> |
| 228 |
</child> |
| 229 |
<child> |
| 230 |
<object class="AdwPasswordEntryRow" id="password_row"> |
| 231 |
<property name="title" translatable="yes">Password</property> |
| 232 |
</object> |
| 233 |
</child> |
| 234 |
<style> |
| 235 |
<class name="content" /> |
| 236 |
</style> |
| 237 |
</object> |
| 238 |
</child> |
| 239 |
<child> |
| 240 |
<object class="GtkButton" id="authenticate_button"> |
| 241 |
<property name="label" translatable="yes">Authenticate</property> |
| 242 |
<property name="halign">center</property> |
| 243 |
<signal name="clicked" handler="authenticate_button_clicked" swapped="true" /> |
| 244 |
<style> |
| 245 |
<class name="pill" /> |
| 246 |
</style> |
| 247 |
</object> |
| 248 |
</child> |
| 249 |
</object> |
| 250 |
</child> |
| 251 |
</object> |
| 252 |
</property> |
| 253 |
</object> |
| 254 |
</property> |
| 255 |
</object> |
| 256 |
</child> |
| 257 |
<child> |
| 258 |
<object class="GtkStackPage"> |
| 259 |
<property name="name">failure</property> |
| 260 |
<property name="child"> |
| 261 |
<object class="AdwStatusPage" id="failure_status_page"> |
| 262 |
<property name="title" translatable="yes">Connection error</property> |
| 263 |
<property name="icon_name">network-error-symbolic</property> |
| 264 |
<property name="child"> |
| 265 |
<object class="GtkButton"> |
| 266 |
<property name="label" translatable="yes">Try Again</property> |
| 267 |
<property name="halign">center</property> |
| 268 |
<signal name="clicked" handler="reconnect_button_clicked" swapped="true" /> |
| 269 |
<style> |
| 270 |
<class name="pill" /> |
| 271 |
</style> |
| 272 |
</object> |
| 273 |
</property> |
| 274 |
</object> |
| 275 |
</property> |
| 276 |
</object> |
| 277 |
</child> |
| 278 |
<style> |
| 279 |
<class name="drop-widget" /> |
| 280 |
</style> |
| 281 |
</object> |
| 282 |
</property> |
| 283 |
</object> |
| 284 |
</child> |
| 285 |
</template> |
| 286 |
</interface> |