From 7de702ad23efe4125e63c9d8b441df306d52ad1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20F=C3=B6rster?= Date: Tue, 28 Nov 2023 23:06:37 +0100 Subject: [PATCH] change color to appRed for chapter --- Shared/Player/Video Details/ChapterView.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Shared/Player/Video Details/ChapterView.swift b/Shared/Player/Video Details/ChapterView.swift index 1e808338..8de2320e 100644 --- a/Shared/Player/Video Details/ChapterView.swift +++ b/Shared/Player/Video Details/ChapterView.swift @@ -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)