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/Repositories/ReferencesListView.swift | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Hutch/Views/Repositories/ReferencesListView.swift') diff --git a/Hutch/Views/Repositories/ReferencesListView.swift b/Hutch/Views/Repositories/ReferencesListView.swift index 6470a42..0e3be0a 100644 --- a/Hutch/Views/Repositories/ReferencesListView.swift +++ b/Hutch/Views/Repositories/ReferencesListView.swift @@ -10,6 +10,7 @@ struct ReferencesListView: View { ForEach(viewModel.branches, id: \.name) { ref in ReferenceRow(reference: ref, prefix: "refs/heads/") } + .themedRow() } } @@ -18,9 +19,11 @@ struct ReferencesListView: View { ForEach(viewModel.tags, id: \.name) { ref in ReferenceRow(reference: ref, prefix: "refs/tags/") } + .themedRow() } } } + .themedList() .listStyle(.insetGrouped) .overlay { if viewModel.isLoadingRefs, viewModel.branches.isEmpty, viewModel.tags.isEmpty { -- cgit v1.2.3