Update watched indicator color (#1107)

Co-authored-by: Isaiah Hamilton <isaiah@isaiahs-mbp.lan>
This commit is contained in:
Isaiah Hamilton 2024-06-28 17:21:22 -04:00 committed by GitHub
parent 4c17ea251b
commit 515218ec52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -6,10 +6,14 @@
// Copyright (c) 2024 Jellyfin & Jellyfin Contributors // Copyright (c) 2024 Jellyfin & Jellyfin Contributors
// //
import Defaults
import SwiftUI import SwiftUI
struct WatchedIndicator: View { struct WatchedIndicator: View {
@Default(.accentColor)
private var accentColor
let size: CGFloat let size: CGFloat
var body: some View { var body: some View {
@ -20,7 +24,7 @@ struct WatchedIndicator: View {
.resizable() .resizable()
.frame(width: size, height: size) .frame(width: size, height: size)
.symbolRenderingMode(.palette) .symbolRenderingMode(.palette)
.foregroundStyle(.white, Color.jellyfinPurple) .foregroundStyle(.white, accentColor)
.padding(3) .padding(3)
} }
} }

View File

@ -15,6 +15,9 @@ extension ItemView {
struct ActionButtonHStack: View { struct ActionButtonHStack: View {
@Default(.accentColor)
private var accentColor
@Injected(Container.downloadManager) @Injected(Container.downloadManager)
private var downloadManager: DownloadManager private var downloadManager: DownloadManager
@ -42,7 +45,7 @@ extension ItemView {
.symbolRenderingMode(.palette) .symbolRenderingMode(.palette)
.foregroundStyle( .foregroundStyle(
.primary, .primary,
Color.jellyfinPurple accentColor
) )
} else { } else {
Image(systemName: "checkmark.circle") Image(systemName: "checkmark.circle")