From 515218ec52917acde970072e0935cc2a8bd53294 Mon Sep 17 00:00:00 2001 From: Isaiah Hamilton Date: Fri, 28 Jun 2024 17:21:22 -0400 Subject: [PATCH] Update watched indicator color (#1107) Co-authored-by: Isaiah Hamilton --- Shared/Components/PosterIndicators/WatchedIndicator.swift | 6 +++++- Swiftfin/Views/ItemView/Components/ActionButtonHStack.swift | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Shared/Components/PosterIndicators/WatchedIndicator.swift b/Shared/Components/PosterIndicators/WatchedIndicator.swift index 3d4b3d9d..1efd1027 100644 --- a/Shared/Components/PosterIndicators/WatchedIndicator.swift +++ b/Shared/Components/PosterIndicators/WatchedIndicator.swift @@ -6,10 +6,14 @@ // Copyright (c) 2024 Jellyfin & Jellyfin Contributors // +import Defaults import SwiftUI struct WatchedIndicator: View { + @Default(.accentColor) + private var accentColor + let size: CGFloat var body: some View { @@ -20,7 +24,7 @@ struct WatchedIndicator: View { .resizable() .frame(width: size, height: size) .symbolRenderingMode(.palette) - .foregroundStyle(.white, Color.jellyfinPurple) + .foregroundStyle(.white, accentColor) .padding(3) } } diff --git a/Swiftfin/Views/ItemView/Components/ActionButtonHStack.swift b/Swiftfin/Views/ItemView/Components/ActionButtonHStack.swift index bc1169d9..845d7829 100644 --- a/Swiftfin/Views/ItemView/Components/ActionButtonHStack.swift +++ b/Swiftfin/Views/ItemView/Components/ActionButtonHStack.swift @@ -15,6 +15,9 @@ extension ItemView { struct ActionButtonHStack: View { + @Default(.accentColor) + private var accentColor + @Injected(Container.downloadManager) private var downloadManager: DownloadManager @@ -42,7 +45,7 @@ extension ItemView { .symbolRenderingMode(.palette) .foregroundStyle( .primary, - Color.jellyfinPurple + accentColor ) } else { Image(systemName: "checkmark.circle")