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/SystemStatus/SystemStatusView.swift | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Hutch/Views/SystemStatus/SystemStatusView.swift') diff --git a/Hutch/Views/SystemStatus/SystemStatusView.swift b/Hutch/Views/SystemStatus/SystemStatusView.swift index 08a46eb..a3ce5b3 100644 --- a/Hutch/Views/SystemStatus/SystemStatusView.swift +++ b/Hutch/Views/SystemStatus/SystemStatusView.swift @@ -36,6 +36,7 @@ struct SystemStatusView: View { Label(staleDataMessage, systemImage: "clock.arrow.trianglehead.counterclockwise.rotate.90") .font(.subheadline) .foregroundStyle(.secondary) + .themedRow() } } @@ -47,6 +48,7 @@ struct SystemStatusView: View { recentIncidentsSection(viewModel.recentIncidents) } + .themedList() .listStyle(.insetGrouped) .refreshable { await viewModel.load(forceRefresh: true) @@ -99,6 +101,7 @@ struct SystemStatusView: View { .font(.subheadline.weight(.medium)) } .padding(.vertical, 4) + .themedRow() } } @@ -119,6 +122,7 @@ struct SystemStatusView: View { } .padding(.vertical, 2) } + .themedRow() } } @@ -129,6 +133,7 @@ struct SystemStatusView: View { ForEach(incidents) { incident in incidentRow(incident) } + .themedRow() } } } @@ -142,10 +147,12 @@ struct SystemStatusView: View { systemImage: "clock.arrow.trianglehead.counterclockwise.rotate.90", description: Text("The status feed didn’t return any recent incidents.") ) + .themedRow() } else { ForEach(incidents) { incident in incidentRow(incident) } + .themedRow() } } } -- cgit v1.2.3