Switching to dialog approach

This commit is contained in:
2025-09-18 15:36:30 +02:00
parent 9f67e85088
commit 4d06e6740e
3 changed files with 39 additions and 28 deletions

View File

@@ -1,26 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="AdwWindow" id="add_shortcut_window">
<property name="width-request">350</property>
<property name="height-request">300</property>
<property name="default-width">500</property>
<property name="default-height">600</property>
<child>
<object class="AdwBreakpoint">
<condition>max-width: 500sp</condition>
</object>
</child>
<property name="content">
<object class="AdwToolbarView">
<object class="AdwDialog" id="add_shortcut_dialog">
<property name="content-width">400</property>
<property name="content-height">350</property>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar">
<property name="title-widget">
<object class="AdwWindowTitle">
<property name="title" translatable="yes" context="label" comments="Verb. Marks a preferences page where the user can add new password stores. Store as in storage">Add New Store</property>
</object>
</property>
<property name="show-end-title-buttons">False</property>
<child type="start">
<object class="GtkButton">
<property name="valign">center</property>
<property name="label" translatable="yes" context="label" comments="Verb">Cancel</property>
</object>
</child>
<child type="end">
<object class="GtkButton">
<style>
<class name="suggested-action" />
</style>
<property name="valign">center</property>
<property name="label" translatable="yes" context="label" comments="Verb">Save</property>
</object>
</child>
</object>
</child>
<property name="content">
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup" id="shortcuts_group">
<property name="title" translatable="yes" context="label" comments="Verb. Marks a preferences page where the user can add new password stores. Store as in storage">Add New Store</property>
<child>
<object class="AdwEntryRow">
<property name="title" translatable="yes" context="Input field placeholder" comments="Noun. Tells the user that the display name of the new password store is to be supplied here">Name</property>
@@ -83,5 +96,5 @@
</property>
</object>
</property>
</object>
</object>
</interface>