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/App/HutchApp.swift | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Hutch/App/HutchApp.swift') diff --git a/Hutch/App/HutchApp.swift b/Hutch/App/HutchApp.swift index 0fb1875..9c643d9 100644 --- a/Hutch/App/HutchApp.swift +++ b/Hutch/App/HutchApp.swift @@ -13,7 +13,9 @@ struct HutchApp: App { .environment(appState) .environment(networkMonitor) .environment(\.displayDensity, displayDensity) + .environment(\.isAMOLEDTheme, appTheme == .amoled) .environment(\.defaultMinListRowHeight, displayDensity == .compact ? 36 : 44) + .background(appTheme == .amoled ? Color.black : Color.clear) .preferredColorScheme(appTheme.colorScheme) .onOpenURL { url in if let link = DeepLink(url: url) { -- cgit v1.2.3