From a48805bf3c04ea88c98ce861a165aeb6798afb67 Mon Sep 17 00:00:00 2001 From: Bruce Cowan <bruce@bcowan.me.uk> Date: Thu, 5 Oct 2023 20:57:18 +0100 Subject: [PATCH] Preference window improvements --- data/gtk/prefs.blp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/data/gtk/prefs.blp b/data/gtk/prefs.blp index ba28d36..50be7f1 100644 --- a/data/gtk/prefs.blp +++ b/data/gtk/prefs.blp @@ -6,17 +6,18 @@ using Gtk 4.0; using Adw 1; template $RugbyPrefWindow : Adw.PreferencesWindow { - default-height: 300; - default-width: 400; + default-width: -1; + default-height: -1; title: "Preferences"; modal: true; + search-enabled: false; Adw.PreferencesPage { Adw.PreferencesGroup { title: "Scoring"; Adw.ActionRow { - title: "Points for a converted tries"; + title: "Points for a converted try"; SpinButton try_spin { adjustment: Adjustment { @@ -24,7 +25,7 @@ template $RugbyPrefWindow : Adw.PreferencesWindow { upper: 7; step-increment: 1; }; - max-width-chars: 3; + max-width-chars: 1; valign: center; } } @@ -38,7 +39,7 @@ template $RugbyPrefWindow : Adw.PreferencesWindow { upper: 5; step-increment: 1; }; - max-width-chars: 3; + max-width-chars: 1; valign: center; } } @@ -52,7 +53,7 @@ template $RugbyPrefWindow : Adw.PreferencesWindow { upper: 3; step-increment: 1; }; - max-width-chars: 3; + max-width-chars: 1; valign: center; } } -- GitLab