fix corner radius on hostsymbolpickerview

This commit is contained in:
neon443
2025-09-10 21:24:46 +01:00
parent e5627a2aaa
commit 5b31db14e7
4 changed files with 5 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ Hostkey fingerprint is \(handler.getHostkey() ?? "nil")
} }
} }
if #available(iOS 26, *) { if #available(iOS 19, *) {
ToolbarSpacer() ToolbarSpacer()
} }

View File

@@ -14,7 +14,7 @@ struct HostSymbolPicker: View {
var innerR: CGFloat { var innerR: CGFloat {
if #available(iOS 19, *) { if #available(iOS 19, *) {
return 16 return 20
} else { } else {
return 3 return 3
} }
@@ -54,6 +54,7 @@ struct HostSymbolPicker: View {
Spacer() Spacer()
TextBox(label: host.label.isEmpty ? "" : "Icon Label", text: $host.label, prompt: "Icon label") TextBox(label: host.label.isEmpty ? "" : "Icon Label", text: $host.label, prompt: "Icon label")
.padding(5)
} }
.padding(10) .padding(10)
} }

View File

@@ -16,7 +16,7 @@ struct glassButton: ViewModifier {
} }
func body(content: Content) -> some View { func body(content: Content) -> some View {
if #available(iOS 26, *) { if #available(iOS 19, *) {
if prominent { if prominent {
content.buttonStyle(.glassProminent) content.buttonStyle(.glassProminent)
} else { } else {

View File

@@ -128,7 +128,7 @@ struct ThemeManagerView: View {
} }
} }
if #available(iOS 26, *) { if #available(iOS 19, *) {
ToolbarSpacer() ToolbarSpacer()
} }