New button style more closely follows GNOME HIG

This commit is contained in:
2025-09-17 17:07:43 +02:00
parent 777762742a
commit fc09de4b5a
2 changed files with 13 additions and 14 deletions

View File

@@ -27,12 +27,12 @@ public class MainWindow
}
shortcutsGroup = group;
var addButton = builder.GetObject("add_shortcut_button") as ButtonRow;
var addButton = builder.GetObject("add_shortcut_button") as Gtk.Button;
if (addButton == null)
{
throw new Exception("Failed to load UI element with ID: add_shortcut_button");
}
addButton.OnActivated += OnAddShortcutClicked;
addButton.OnClicked += OnAddShortcutClicked;
// Initialize the observable collection with property binding
shortcuts = new PasswordStoreShortcutCollection(shortcutsGroup);