@@ -128,8 +128,16 @@ template $HostEditor: Gtk.Box {
128128            title: _("Username");
129129          }
130130
131-           Adw.EntryRow  port_entry {
131+           Adw.SpinRow  port_entry {
132132            title: _("Port");
133+             numeric: true;
134+             adjustment: Gtk.Adjustment {
135+               value: 22;
136+               lower: 1;
137+               upper: 65535;
138+               step-increment: 1;
139+               page-increment: 10;
140+             };
133141          }
134142
135143          Label port_error_label {
@@ -156,6 +164,9 @@ template $HostEditor: Gtk.Box {
156164              margin-bottom: 8;
157165              icon-name: "document-open-symbolic";
158166              tooltip-text: _("Choose Identity File");
167+               styles [
168+                 "flat",
169+               ]
159170            }
160171
161172            [suffix]
@@ -164,6 +175,9 @@ template $HostEditor: Gtk.Box {
164175              margin-bottom: 8;
165176              icon-name: "dialog-password-symbolic";
166177              tooltip-text: _("Pick from existing SSH keys");
178+               styles [
179+                 "flat",
180+               ]
167181            }
168182          }
169183
@@ -181,16 +195,28 @@ template $HostEditor: Gtk.Box {
181195        Adw.PreferencesGroup {
182196          title: _("Actions");
183197
184-           Adw.ActionRow copy_row {
185-             title: _("Copy SSH command");
186-             activatable: true;
187-             subtitle: _("Copies the resolved SSH command to the clipboard");
188-           }
198+           Box {
199+             orientation: horizontal;
200+             spacing: 12;
201+             margin-top: 12;
202+             margin-bottom: 12;
203+ 
204+             Button copy_button {
205+               label: _("Copy SSH command");
206+               hexpand: true;
207+               styles [
208+                 "pill",
209+                 "suggested-action",
210+               ]
211+             }
189212
190-           Adw.ActionRow test_row {
191-             title: _("Test connection");
192-             activatable: true;
193-             subtitle: _("Runs a quick non-interactive SSH check");
213+             Button test_button {
214+               label: _("Test connection");
215+               hexpand: true;
216+               styles [
217+                 "pill",
218+               ]
219+             }
194220          }
195221        }
196222      };
@@ -247,16 +273,28 @@ template $HostEditor: Gtk.Box {
247273            }
248274          }
249275
250-           Adw.EntryRow  serveralive_interval_entry {
276+           Adw.SpinRow  serveralive_interval_entry {
251277            title: _("ServerAliveInterval (s)");
252-             show-apply-button: false;
253-             input-purpose: number;
278+             numeric: true;
279+             adjustment: Gtk.Adjustment {
280+               value: 0;
281+               lower: 0;
282+               upper: 300;
283+               step-increment: 1;
284+               page-increment: 10;
285+             };
254286          }
255287
256-           Adw.EntryRow  serveralive_count_entry {
288+           Adw.SpinRow  serveralive_count_entry {
257289            title: _("ServerAliveCountMax");
258-             show-apply-button: false;
259-             input-purpose: number;
290+             numeric: true;
291+             adjustment: Gtk.Adjustment {
292+               value: 3;
293+               lower: 1;
294+               upper: 100;
295+               step-increment: 1;
296+               page-increment: 5;
297+             };
260298          }
261299
262300          Adw.ActionRow {
0 commit comments