| 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="AdwDemoPageBanners" parent="AdwBin"> |
| 6 |
<property name="child"> |
| 7 |
<object class="AdwToolbarView"> |
| 8 |
<child type="top"> |
| 9 |
<object class="AdwHeaderBar"> |
| 10 |
<property name="show-title">False</property> |
| 11 |
</object> |
| 12 |
</child> |
| 13 |
<property name="content"> |
| 14 |
<object class="GtkCenterBox"> |
| 15 |
<property name="vexpand">True</property> |
| 16 |
<property name="orientation">vertical</property> |
| 17 |
<property name="start-widget"> |
| 18 |
<object class="AdwBanner" id="banner"> |
| 19 |
<property name="revealed" bind-source="show_banner_switch" bind-property="active" bind-flags="sync-create|bidirectional" /> |
| 20 |
<property name="title" bind-source="title_row" bind-property="text" bind-flags="sync-create" /> |
| 21 |
<property name="action-name">demo.activate</property> |
| 22 |
</object> |
| 23 |
</property> |
| 24 |
<property name="center-widget"> |
| 25 |
<object class="AdwStatusPage"> |
| 26 |
<property name="icon-name">widget-banner-symbolic</property> |
| 27 |
<property name="title" translatable="yes">Banner</property> |
| 28 |
<property name="description" translatable="yes">A bar with contextual information</property> |
| 29 |
<property name="child"> |
| 30 |
<object class="AdwClamp"> |
| 31 |
<property name="maximum-size">400</property> |
| 32 |
<property name="tightening-threshold">300</property> |
| 33 |
<property name="child"> |
| 34 |
<object class="AdwPreferencesGroup"> |
| 35 |
<child> |
| 36 |
<object class="AdwSwitchRow" id="show_banner_switch"> |
| 37 |
<property name="title" translatable="yes">Show Banner</property> |
| 38 |
<property name="active">True</property> |
| 39 |
</object> |
| 40 |
</child> |
| 41 |
<child> |
| 42 |
<object class="AdwEntryRow" id="title_row"> |
| 43 |
<property name="title" translatable="yes">Title</property> |
| 44 |
<property name="use_underline">True</property> |
| 45 |
<property name="text">Metered connection — updates paused</property> |
| 46 |
<property name="input-hints">spellcheck | word-completion | uppercase-sentences</property> |
| 47 |
</object> |
| 48 |
</child> |
| 49 |
<child> |
| 50 |
<object class="AdwEntryRow" id="button_label_row"> |
| 51 |
<property name="title" translatable="yes">Button</property> |
| 52 |
<property name="use_underline">True</property> |
| 53 |
<property name="text">_Network Settings</property> |
| 54 |
<property name="input-hints">spellcheck | word-completion | uppercase-words</property> |
| 55 |
<property name="editable" bind-source="label_switch" bind-property="active" bind-flags="sync-create"/> |
| 56 |
<signal name="notify::text" handler="update_button_cb" swapped="yes"/> |
| 57 |
<signal name="notify::editable" handler="update_button_cb" swapped="yes"/> |
| 58 |
<child> |
| 59 |
<object class="GtkSwitch" id="label_switch"> |
| 60 |
<property name="valign">center</property> |
| 61 |
<property name="active">True</property> |
| 62 |
</object> |
| 63 |
</child> |
| 64 |
</object> |
| 65 |
</child> |
| 66 |
<child> |
| 67 |
<object class="AdwSwitchRow" id="button_style_row"> |
| 68 |
<property name="title" translatable="yes">Suggested Style</property> |
| 69 |
<property name="sensitive" bind-source="label_switch" bind-property="active" bind-flags="sync-create"/> |
| 70 |
<signal name="notify::active" handler="button_style_notify_active_cb" swapped="yes"/> |
| 71 |
</object> |
| 72 |
</child> |
| 73 |
</object> |
| 74 |
</property> |
| 75 |
</object> |
| 76 |
</property> |
| 77 |
</object> |
| 78 |
</property> |
| 79 |
</object> |
| 80 |
</property> |
| 81 |
</object> |
| 82 |
</property> |
| 83 |
</template> |
| 84 |
</interface> |