Use rounded font for macOS player time labels

Switch the current-time and duration labels in the macOS transport
control bar from a monospaced design to a rounded design with
.monospacedDigit(), keeping stable digit widths while matching the
softer Liquid Glass look.
This commit is contained in:
Arkadiusz Fal
2026-05-25 18:02:34 +02:00
parent 54488aea0f
commit fe4e3c531a

View File

@@ -215,7 +215,7 @@ struct MacOSControlBar: View {
} else {
// Current time
Text(playerState.formattedCurrentTime)
.font(.system(size: 11, weight: .medium, design: .monospaced))
.font(.system(size: 11, weight: .medium, design: .rounded).monospacedDigit())
.foregroundStyle(.primary)
.lineLimit(1)
.fixedSize()
@@ -225,7 +225,7 @@ struct MacOSControlBar: View {
// Duration
Text(playerState.formattedDuration)
.font(.system(size: 11, weight: .medium, design: .monospaced))
.font(.system(size: 11, weight: .medium, design: .rounded).monospacedDigit())
.foregroundStyle(.secondary)
.lineLimit(1)
.fixedSize()