Update watched indicator color (#1107)
Co-authored-by: Isaiah Hamilton <isaiah@isaiahs-mbp.lan>
This commit is contained in:
parent
4c17ea251b
commit
515218ec52
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue