From a6ad2b9815d72575206bdca860eef9db850cdf1c Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Mon, 13 Apr 2026 19:06:54 -0500 Subject: feat(theme): AMOLED true-black rows via themedRow() Apply listRowBackground(Color.black) per row in AMOLED mode using ThemedRowStyle and themedRow() across Lists and Forms. Use themedList() for scroll/grouped backgrounds. Treat segmented and clear list rows with isAMOLED-aware listRowBackground where Color.clear was required. Removes reliance on UIKit appearance for list cells on iOS 16+. Implements: https://todo.sr.ht/~ccleberg/hutch/24 --- Hutch/Views/Auth/AuthView.swift | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Hutch/Views/Auth') diff --git a/Hutch/Views/Auth/AuthView.swift b/Hutch/Views/Auth/AuthView.swift index 5a249ef..d114981 100644 --- a/Hutch/Views/Auth/AuthView.swift +++ b/Hutch/Views/Auth/AuthView.swift @@ -15,6 +15,7 @@ struct TokenEntryView: View { Form { Section { Text("Enter your SourceHut personal access token to connect.") + .themedRow() } header: { Text("Welcome to Hutch") } footer: { @@ -27,6 +28,7 @@ struct TokenEntryView: View { .autocorrectionDisabled() .textInputAutocapitalization(.never) .disabled(isConnecting) + .themedRow() } header: { Text("Token") } @@ -40,6 +42,7 @@ struct TokenEntryView: View { .foregroundStyle(.red) } .foregroundStyle(.red) + .themedRow() } } @@ -56,22 +59,26 @@ struct TokenEntryView: View { } } .disabled(tokenTrimmed.isEmpty || isConnecting) + .themedRow() } Section { Link(destination: createAccountURL) { Label("Create SourceHut account", systemImage: "person.badge.plus") } + .themedRow() Link(destination: personalAccessTokensURL) { Label("Create Personal Access Token", systemImage: "key") } + .themedRow() } header: { Text("Need an account?") } footer: { Text("These links open SourceHut in your browser. After signing up, create a Personal Access Token there and paste it here.") } } + .themedList() .navigationTitle("Hutch") } } -- cgit v1.2.3