mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
change color to appRed for chapter
This commit is contained in:
parent
13ef96cd02
commit
7de702ad23
@ -29,7 +29,6 @@ import SwiftUI
|
|||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
}
|
}
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
|
|
||||||
.onReceive(PlayerTimeModel.shared.$currentTime) { cmTime in
|
.onReceive(PlayerTimeModel.shared.$currentTime) { cmTime in
|
||||||
let time = CMTimeGetSeconds(cmTime)
|
let time = CMTimeGetSeconds(cmTime)
|
||||||
if time >= self.chapter.start, self.nextChapterStart == nil || time < self.nextChapterStart! {
|
if time >= self.chapter.start, self.nextChapterStart == nil || time < self.nextChapterStart! {
|
||||||
@ -51,7 +50,7 @@ import SwiftUI
|
|||||||
.lineLimit(3)
|
.lineLimit(3)
|
||||||
.multilineTextAlignment(.leading)
|
.multilineTextAlignment(.leading)
|
||||||
.font(.headline)
|
.font(.headline)
|
||||||
.foregroundColor(isCurrentChapter ? .detailBadgeOutstandingStyleBackground : .primary)
|
.foregroundColor(isCurrentChapter ? .appRed : .primary)
|
||||||
Text(chapter.start.formattedAsPlaybackTime(allowZero: true) ?? "")
|
Text(chapter.start.formattedAsPlaybackTime(allowZero: true) ?? "")
|
||||||
.font(.system(.subheadline).monospacedDigit())
|
.font(.system(.subheadline).monospacedDigit())
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
|
Loading…
Reference in New Issue
Block a user