| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<requires lib="gtk" version="4.0"/> |
| 4 |
<requires lib="Adw" version="1.0"/> |
| 5 |
<template class="PaperClipPasswordDialog" parent="AdwDialog"> |
| 6 |
<property name="width-request">350</property> |
| 7 |
<property name="height-request">320</property> |
| 8 |
<property name="title" translatable="yes">Password Dialog</property> |
| 9 |
<signal name="closed" handler="on_closed"/> |
| 10 |
<property name="child"> |
| 11 |
<object class="AdwToolbarView"> |
| 12 |
<child type="top"> |
| 13 |
<object class="AdwHeaderBar"> |
| 14 |
<property name="show-title">false</property> |
| 15 |
</object> |
| 16 |
</child> |
| 17 |
<child> |
| 18 |
<object class="AdwStatusPage" id="status_page"> |
| 19 |
<property name="title" translatable="yes">This Document Is Encrypted</property> |
| 20 |
<property name="icon-name">key-symbolic</property> |
| 21 |
<style> |
| 22 |
<class name="compact"/> |
| 23 |
</style> |
| 24 |
<child> |
| 25 |
<object class="AdwClamp"> |
| 26 |
<child> |
| 27 |
<object class="GtkBox"> |
| 28 |
<property name="orientation">vertical</property> |
| 29 |
<property name="spacing">12</property> |
| 30 |
<child> |
| 31 |
<object class="GtkListBox"> |
| 32 |
<property name="selection-mode">none</property> |
| 33 |
<style> |
| 34 |
<class name="boxed-list"/> |
| 35 |
</style> |
| 36 |
<child> |
| 37 |
<object class="AdwPasswordEntryRow" id="password_entry"> |
| 38 |
<property name="title" translatable="yes">Password</property> |
| 39 |
</object> |
| 40 |
</child> |
| 41 |
</object> |
| 42 |
</child> |
| 43 |
<child> |
| 44 |
<object class="GtkButton" id="decrypt_button"> |
| 45 |
<property name="label" translatable="yes">Decrypt</property> |
| 46 |
<property name="halign">center</property> |
| 47 |
<property name="action-name">dialog.success</property> |
| 48 |
<signal name="clicked" handler="success_task"/> |
| 49 |
<style> |
| 50 |
<class name="pill"/> |
| 51 |
<class name="suggested-action"/> |
| 52 |
</style> |
| 53 |
</object> |
| 54 |
</child> |
| 55 |
</object> |
| 56 |
</child> |
| 57 |
</object> |
| 58 |
</child> |
| 59 |
</object> |
| 60 |
</child> |
| 61 |
</object> |
| 62 |
</property> |
| 63 |
<child> |
| 64 |
<object class="GtkShortcutController"> |
| 65 |
<property name="propagation-phase">capture</property> |
| 66 |
<child> |
| 67 |
<object class="GtkShortcut"> |
| 68 |
<property name="trigger">Return</property> |
| 69 |
<property name="action">action(dialog.success)</property> |
| 70 |
</object> |
| 71 |
</child> |
| 72 |
<child> |
| 73 |
<object class="GtkShortcut"> |
| 74 |
<property name="trigger">Escape</property> |
| 75 |
<property name="action">action(dialog.cancel)</property> |
| 76 |
</object> |
| 77 |
</child> |
| 78 |
</object> |
| 79 |
</child> |
| 80 |
</template> |
| 81 |
</interface> |