Use user-selected accent color in Home, Subscriptions, and Downloads

Color.accentColor and .foregroundStyle(.tint) resolve to the asset
catalog accent on macOS, so Home shortcut cards, section header
links, the Subscriptions "All channels" header, and the Downloads
per-channel group headers stayed blue when the user picked a
different accent. Read the color from SettingsManager and apply it
directly, matching the pattern already used for the Play button.
This commit is contained in:
Arkadiusz Fal
2026-04-23 22:55:48 +02:00
parent fd0eab7784
commit 6df80c0e79
5 changed files with 31 additions and 12 deletions

View File

@@ -347,6 +347,10 @@ private struct CompletedDownloadsSectionContentView: View {
let listStyle: VideoListStyle
let isGroupedMode: Bool
private var accentColor: Color {
appEnvironment?.settingsManager.accentColor.color ?? .accentColor
}
private var completedFiltered: [Download] {
guard !searchText.isEmpty else { return manager.completedDownloads }
let query = searchText.lowercased()
@@ -502,7 +506,7 @@ private struct CompletedDownloadsSectionContentView: View {
Image(systemName: "chevron.right")
.font(.caption)
}
.foregroundStyle(Color.accentColor)
.foregroundStyle(accentColor)
}
.zoomTransitionSource(id: channelID)
.buttonStyle(.plain)