| 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="AdwDemoPageToasts" 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="AdwStatusPage"> |
| 15 |
<property name="icon-name">widget-toast-symbolic</property> |
| 16 |
<property name="title" translatable="yes">Toasts</property> |
| 17 |
<property name="description" translatable="yes">Transient in-app notifications</property> |
| 18 |
<property name="child"> |
| 19 |
<object class="AdwClamp"> |
| 20 |
<property name="maximum-size">400</property> |
| 21 |
<property name="tightening-threshold">300</property> |
| 22 |
<property name="child"> |
| 23 |
<object class="AdwPreferencesGroup"> |
| 24 |
<child> |
| 25 |
<object class="AdwActionRow"> |
| 26 |
<property name="title" translatable="yes">Simple Toast</property> |
| 27 |
<child> |
| 28 |
<object class="GtkButton"> |
| 29 |
<property name="valign">center</property> |
| 30 |
<property name="label" translatable="yes">Show</property> |
| 31 |
<property name="action-name">toast.add</property> |
| 32 |
</object> |
| 33 |
</child> |
| 34 |
</object> |
| 35 |
</child> |
| 36 |
<child> |
| 37 |
<object class="AdwActionRow"> |
| 38 |
<property name="title" translatable="yes">Toast With an Action</property> |
| 39 |
<child> |
| 40 |
<object class="GtkButton"> |
| 41 |
<property name="valign">center</property> |
| 42 |
<property name="icon-name">user-trash-symbolic</property> |
| 43 |
<property name="action-name">toast.dismiss</property> |
| 44 |
<style> |
| 45 |
<class name="flat"/> |
| 46 |
</style> |
| 47 |
</object> |
| 48 |
</child> |
| 49 |
<child> |
| 50 |
<object class="GtkButton"> |
| 51 |
<property name="valign">center</property> |
| 52 |
<property name="label" translatable="yes">Show</property> |
| 53 |
<property name="action-name">toast.add-with-button</property> |
| 54 |
</object> |
| 55 |
</child> |
| 56 |
</object> |
| 57 |
</child> |
| 58 |
<child> |
| 59 |
<object class="AdwActionRow"> |
| 60 |
<property name="title" translatable="yes">Toast With a Long Title</property> |
| 61 |
<child> |
| 62 |
<object class="GtkButton"> |
| 63 |
<property name="valign">center</property> |
| 64 |
<property name="label" translatable="yes">Show</property> |
| 65 |
<property name="action-name">toast.add-with-long-title</property> |
| 66 |
</object> |
| 67 |
</child> |
| 68 |
</object> |
| 69 |
</child> |
| 70 |
<child> |
| 71 |
<object class="AdwActionRow"> |
| 72 |
<property name="title" translatable="yes">Dismiss all Toasts</property> |
| 73 |
<child> |
| 74 |
<object class="GtkButton"> |
| 75 |
<property name="valign">center</property> |
| 76 |
<property name="label" translatable="yes">Dismiss</property> |
| 77 |
<property name="action-name">toast.dismiss-all</property> |
| 78 |
</object> |
| 79 |
</child> |
| 80 |
</object> |
| 81 |
</child> |
| 82 |
</object> |
| 83 |
</property> |
| 84 |
</object> |
| 85 |
</property> |
| 86 |
</object> |
| 87 |
</property> |
| 88 |
</object> |
| 89 |
</property> |
| 90 |
</template> |
| 91 |
</interface> |