change color to appRed for chapter

This commit is contained in:
Toni Förster 2023-11-28 23:06:37 +01:00
parent 13ef96cd02
commit 7de702ad23
No known key found for this signature in database
GPG Key ID: 292F3E5086C83FC7

View File

@ -29,7 +29,6 @@ import SwiftUI
.contentShape(Rectangle())
}
.buttonStyle(.plain)
.onReceive(PlayerTimeModel.shared.$currentTime) { cmTime in
let time = CMTimeGetSeconds(cmTime)
if time >= self.chapter.start, self.nextChapterStart == nil || time < self.nextChapterStart! {
@ -51,7 +50,7 @@ import SwiftUI
.lineLimit(3)
.multilineTextAlignment(.leading)
.font(.headline)
.foregroundColor(isCurrentChapter ? .detailBadgeOutstandingStyleBackground : .primary)
.foregroundColor(isCurrentChapter ? .appRed : .primary)
Text(chapter.start.formattedAsPlaybackTime(allowZero: true) ?? "")
.font(.system(.subheadline).monospacedDigit())
.foregroundColor(.secondary)