Using prettier button

This commit is contained in:
2025-09-17 13:11:48 +02:00
parent b0379fba05
commit de29f522ba
2 changed files with 4 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ public class MainWindow
} }
shortcutsGroup = group; shortcutsGroup = group;
var addButton = builder.GetObject("add_shortcut_button") as ActionRow; var addButton = builder.GetObject("add_shortcut_button") as ButtonRow;
if (addButton == null) if (addButton == null)
{ {
throw new Exception("Failed to load UI element with ID: add_shortcut_button"); throw new Exception("Failed to load UI element with ID: add_shortcut_button");

View File

@@ -39,14 +39,9 @@
<child> <child>
<object class="AdwPreferencesGroup"> <object class="AdwPreferencesGroup">
<child> <child>
<object class="AdwActionRow" id="add_shortcut_button"> <object class="AdwButtonRow" id="add_shortcut_button">
<property name="start-icon-name">list-add-symbolic</property>
<property name="title" translatable="yes" context="button" comments="Verb. This button allows the user to add additional password collections.">Add</property> <property name="title" translatable="yes" context="button" comments="Verb. This button allows the user to add additional password collections.">Add</property>
<property name="activatable">True</property>
<child type="suffix">
<object class="GtkImage">
<property name="icon-name">list-add-symbolic</property>
</object>
</child>
</object> </object>
</child> </child>
</object> </object>
@@ -85,4 +80,4 @@
</object> </object>
</property> </property>
</object> </object>
</interface> </interface>