style: Adjust player time display width and add line limit in player views for improved readability.
This commit is contained in:
Binary file not shown.
@@ -355,7 +355,8 @@ struct AVPlayerContentView: View {
|
|||||||
Text(currentTime.durationString)
|
Text(currentTime.durationString)
|
||||||
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
||||||
.foregroundColor(.white.opacity(0.9))
|
.foregroundColor(.white.opacity(0.9))
|
||||||
.frame(width: 45, alignment: .leading)
|
.lineLimit(1)
|
||||||
|
.frame(width: 62, alignment: .leading)
|
||||||
|
|
||||||
Slider(
|
Slider(
|
||||||
value: Binding(
|
value: Binding(
|
||||||
@@ -380,7 +381,8 @@ struct AVPlayerContentView: View {
|
|||||||
Text(duration.durationString)
|
Text(duration.durationString)
|
||||||
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
||||||
.foregroundColor(.white.opacity(0.6))
|
.foregroundColor(.white.opacity(0.6))
|
||||||
.frame(width: 45, alignment: .trailing)
|
.lineLimit(1)
|
||||||
|
.frame(width: 62, alignment: .trailing)
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 4)
|
.padding(.horizontal, 4)
|
||||||
|
|
||||||
|
|||||||
@@ -1024,7 +1024,8 @@ struct VLCVodPlayerView: View {
|
|||||||
Text(currentDisplaySeconds.durationString)
|
Text(currentDisplaySeconds.durationString)
|
||||||
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
||||||
.foregroundColor(.white.opacity(0.9))
|
.foregroundColor(.white.opacity(0.9))
|
||||||
.frame(width: 45, alignment: .leading)
|
.lineLimit(1)
|
||||||
|
.frame(width: 62, alignment: .leading)
|
||||||
|
|
||||||
Slider(
|
Slider(
|
||||||
value: Binding(
|
value: Binding(
|
||||||
@@ -1049,7 +1050,8 @@ struct VLCVodPlayerView: View {
|
|||||||
Text(totalDisplayText)
|
Text(totalDisplayText)
|
||||||
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
.font(.system(size: 11, weight: .semibold, design: .monospaced))
|
||||||
.foregroundColor(.white.opacity(0.6))
|
.foregroundColor(.white.opacity(0.6))
|
||||||
.frame(width: 45, alignment: .trailing)
|
.lineLimit(1)
|
||||||
|
.frame(width: 62, alignment: .trailing)
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 4)
|
.padding(.horizontal, 4)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user