diff options
| author | Christian Cleberg <[email protected]> | 2026-04-13 19:06:54 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-13 19:06:54 -0500 |
| commit | a6ad2b9815d72575206bdca860eef9db850cdf1c (patch) | |
| tree | b4d5f27aa1655e5e40bab178550d6e2576d7df8b /Hutch/Views/Inbox/ThreadDetailView.swift | |
| parent | 02a44d115b3784231cad640e992d9c18a7f67b40 (diff) | |
| download | hutch-a6ad2b9815d72575206bdca860eef9db850cdf1c.tar.gz hutch-a6ad2b9815d72575206bdca860eef9db850cdf1c.tar.bz2 hutch-a6ad2b9815d72575206bdca860eef9db850cdf1c.zip | |
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
Diffstat (limited to 'Hutch/Views/Inbox/ThreadDetailView.swift')
| -rw-r--r-- | Hutch/Views/Inbox/ThreadDetailView.swift | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Hutch/Views/Inbox/ThreadDetailView.swift b/Hutch/Views/Inbox/ThreadDetailView.swift index bde8172..028964c 100644 --- a/Hutch/Views/Inbox/ThreadDetailView.swift +++ b/Hutch/Views/Inbox/ThreadDetailView.swift @@ -123,6 +123,7 @@ struct ThreadDetailView: View { .foregroundStyle(.secondary) } .padding(.vertical, 4) + .themedRow() } Section("Related") { @@ -138,6 +139,7 @@ struct ThreadDetailView: View { } label: { Label(thread.listDisplayName, systemImage: "list.bullet") } + .themedRow() if let repo = self.thread.repo { Button { @@ -157,6 +159,7 @@ struct ThreadDetailView: View { } } .disabled(isOpeningRepository) + .themedRow() } } @@ -165,6 +168,7 @@ struct ThreadDetailView: View { Text(partialWarning) .font(.caption) .foregroundStyle(.secondary) + .themedRow() } } @@ -184,8 +188,10 @@ struct ThreadDetailView: View { } ) } + .themedRow() } } + .themedList() .listStyle(.plain) .toolbar { ToolbarItem(placement: .topBarTrailing) { |
