From fc09de4b5a613d3c340eec7f70d7d52e4065a88b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Wed, 17 Sep 2025 17:07:43 +0200 Subject: [PATCH] New button style more closely follows GNOME HIG --- App/UI/MainWindow.cs | 4 ++-- App/UI/MainWindow.xml | 23 +++++++++++------------ 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/App/UI/MainWindow.cs b/App/UI/MainWindow.cs index 6069293..80d5e7a 100644 --- a/App/UI/MainWindow.cs +++ b/App/UI/MainWindow.cs @@ -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); diff --git a/App/UI/MainWindow.xml b/App/UI/MainWindow.xml index a723c8b..7c06d32 100644 --- a/App/UI/MainWindow.xml +++ b/App/UI/MainWindow.xml @@ -26,7 +26,17 @@ - + + + + list-add-symbolic + center + + + + @@ -35,17 +45,6 @@ - - - - - - list-add-symbolic - Add - - - -