From bc01c0ff1243e66d6ada393669fab28302debaf1 Mon Sep 17 00:00:00 2001 From: Till Date: Thu, 14 May 2026 21:38:48 +0200 Subject: [PATCH] ui: Mac-Window + Konto-Header nach erstem TestFlight-Build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - WebShellView füllt Window-Höhe explizit (.frame(maxWidth: .infinity, maxHeight: .infinity)) — sonst hatte WKWebView auf Mac einen Rest-Spalt, der den Web-Footer abschnitt. - RootView TabBar-Hintergrund: Paper-Background auf Window-Toolbar (macOS-only via #if os(macOS), windowToolbar-Placement existiert unter iOS nicht). Title-Bar passt jetzt zum Content statt System-Grau. - AccountView Header: SF Symbol "quote.opening" durch eine einzelne, zentrierte Öffnungs-Anführung in Georgia-Bold ersetzt. Die SF- Doppelglyphe war asymmetrisch positioniert, sieht jetzt sauber aus. Co-Authored-By: Claude Opus 4.7 (1M context) --- Sources/App/RootView.swift | 9 +++++++++ Sources/Features/Account/AccountView.swift | 11 ++++++++--- Sources/Features/WebShell/WebShellView.swift | 3 +++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Sources/App/RootView.swift b/Sources/App/RootView.swift index c8aeced..8bd0775 100644 --- a/Sources/App/RootView.swift +++ b/Sources/App/RootView.swift @@ -30,6 +30,15 @@ struct RootView: View { .tabItem { Label("Konto", systemImage: "person.circle") } .tag(AppTab.account) } + // Mac-Window-Hintergrund auf Paper-Theme setzen, damit der + // TabBar-/Title-Bar-Bereich oben nicht mit dem System-Grau + // gegen das Paper-Theme ausreißt. `windowToolbar`-Placement + // ist macOS-only. + .background(ZitareTheme.background.ignoresSafeArea()) + #if os(macOS) + .toolbarBackground(ZitareTheme.background, for: .windowToolbar) + .toolbarBackground(.visible, for: .windowToolbar) + #endif .task { await probeHealth() } diff --git a/Sources/Features/Account/AccountView.swift b/Sources/Features/Account/AccountView.swift index 6f5c03d..4671297 100644 --- a/Sources/Features/Account/AccountView.swift +++ b/Sources/Features/Account/AccountView.swift @@ -26,10 +26,15 @@ struct AccountView: View { } private var header: some View { - VStack(spacing: 8) { - Image(systemName: "quote.opening") - .font(.system(size: 48)) + VStack(spacing: 12) { + // Eigenes Anführungszeichen-Glyph in der gleichen Variante + // wie das App-Icon — sienna auf transparentem Hintergrund, + // serif. SF-Symbol "quote.opening" rendert zwei Glyphen + // asymmetrisch nebeneinander, das wirkt unsauber. + Text(verbatim: "\u{201C}") + .font(.custom("Georgia-Bold", size: 96)) .foregroundStyle(ZitareTheme.primary) + .frame(height: 64, alignment: .top) Text("Zitare") .font(.largeTitle) .fontWeight(.semibold) diff --git a/Sources/Features/WebShell/WebShellView.swift b/Sources/Features/WebShell/WebShellView.swift index 30ff0b1..e124765 100644 --- a/Sources/Features/WebShell/WebShellView.swift +++ b/Sources/Features/WebShell/WebShellView.swift @@ -33,6 +33,7 @@ struct WebShellView: View { navState: navState, openURL: openURL ) + .frame(maxWidth: .infinity, maxHeight: .infinity) .background(ZitareTheme.background) #elseif canImport(AppKit) MacWebViewRepresentable( @@ -40,12 +41,14 @@ struct WebShellView: View { navState: navState, openURL: openURL ) + .frame(maxWidth: .infinity, maxHeight: .infinity) .background(ZitareTheme.background) #endif if let error = navState.lastError { errorBar(error) } } + .frame(maxWidth: .infinity, maxHeight: .infinity) } private func errorBar(_ message: String) -> some View {