mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user