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
//
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)
}
}

View File

@ -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")