From 5b31db14e74d2251e936533ec25cf05d5f665324 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Wed, 10 Sep 2025 21:24:46 +0100 Subject: [PATCH] fix corner radius on hostsymbolpickerview --- ShhShell/Views/Hosts/ConnectionView.swift | 2 +- ShhShell/Views/Hosts/HostSymbolPicker.swift | 3 ++- ShhShell/Views/Misc/ViewModifiers.swift | 2 +- ShhShell/Views/Themes/ThemeManagerView.swift | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ShhShell/Views/Hosts/ConnectionView.swift b/ShhShell/Views/Hosts/ConnectionView.swift index 9ebc6d3..f5476f2 100644 --- a/ShhShell/Views/Hosts/ConnectionView.swift +++ b/ShhShell/Views/Hosts/ConnectionView.swift @@ -139,7 +139,7 @@ Hostkey fingerprint is \(handler.getHostkey() ?? "nil") } } - if #available(iOS 26, *) { + if #available(iOS 19, *) { ToolbarSpacer() } diff --git a/ShhShell/Views/Hosts/HostSymbolPicker.swift b/ShhShell/Views/Hosts/HostSymbolPicker.swift index 1c23ba6..75f69ea 100644 --- a/ShhShell/Views/Hosts/HostSymbolPicker.swift +++ b/ShhShell/Views/Hosts/HostSymbolPicker.swift @@ -14,7 +14,7 @@ struct HostSymbolPicker: View { var innerR: CGFloat { if #available(iOS 19, *) { - return 16 + return 20 } else { return 3 } @@ -54,6 +54,7 @@ struct HostSymbolPicker: View { Spacer() TextBox(label: host.label.isEmpty ? "" : "Icon Label", text: $host.label, prompt: "Icon label") + .padding(5) } .padding(10) } diff --git a/ShhShell/Views/Misc/ViewModifiers.swift b/ShhShell/Views/Misc/ViewModifiers.swift index 4f2882e..84072ad 100644 --- a/ShhShell/Views/Misc/ViewModifiers.swift +++ b/ShhShell/Views/Misc/ViewModifiers.swift @@ -16,7 +16,7 @@ struct glassButton: ViewModifier { } func body(content: Content) -> some View { - if #available(iOS 26, *) { + if #available(iOS 19, *) { if prominent { content.buttonStyle(.glassProminent) } else { diff --git a/ShhShell/Views/Themes/ThemeManagerView.swift b/ShhShell/Views/Themes/ThemeManagerView.swift index 0395582..9f68760 100644 --- a/ShhShell/Views/Themes/ThemeManagerView.swift +++ b/ShhShell/Views/Themes/ThemeManagerView.swift @@ -128,7 +128,7 @@ struct ThemeManagerView: View { } } - if #available(iOS 26, *) { + if #available(iOS 19, *) { ToolbarSpacer() }