mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Add playing indicator
This commit is contained in:
@@ -250,12 +250,18 @@ struct VideoBanner: View {
|
||||
}
|
||||
|
||||
@ViewBuilder private var timeView: some View {
|
||||
if let timeLabel {
|
||||
Text(timeLabel)
|
||||
.font(.caption2.weight(.semibold).monospacedDigit())
|
||||
.allowsTightening(true)
|
||||
.padding(2)
|
||||
.modifier(ControlBackgroundModifier())
|
||||
VStack(alignment: .trailing, spacing: 2) {
|
||||
PlayingIndicatorView(video: video, height: 10)
|
||||
.frame(width: 12, alignment: .trailing)
|
||||
.padding(.trailing, 3)
|
||||
|
||||
if let timeLabel {
|
||||
Text(timeLabel)
|
||||
.font(.caption2.weight(.semibold).monospacedDigit())
|
||||
.allowsTightening(true)
|
||||
.padding(2)
|
||||
.modifier(ControlBackgroundModifier())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -418,14 +418,19 @@ struct VideoCell: View {
|
||||
|
||||
Spacer()
|
||||
|
||||
HStack {
|
||||
Spacer()
|
||||
VStack(alignment: .trailing, spacing: 4) {
|
||||
PlayingIndicatorView(video: video, height: 20)
|
||||
.frame(width: 15, alignment: .trailing)
|
||||
.padding(.trailing, 3)
|
||||
HStack {
|
||||
Spacer()
|
||||
|
||||
if timeOnThumbnail,
|
||||
!video.live,
|
||||
let time
|
||||
{
|
||||
DetailBadge(text: time, style: .prominent)
|
||||
if timeOnThumbnail,
|
||||
!video.live,
|
||||
let time
|
||||
{
|
||||
DetailBadge(text: time, style: .prominent)
|
||||
}
|
||||
}
|
||||
}
|
||||
#if os(tvOS)
|
||||
|
Reference in New Issue
Block a user