mirror of
https://github.com/yattee/yattee.git
synced 2026-07-21 06:42:01 +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 {
|
} else {
|
||||||
// Current time
|
// Current time
|
||||||
Text(playerState.formattedCurrentTime)
|
Text(playerState.formattedCurrentTime)
|
||||||
.font(.system(size: 11, weight: .medium, design: .monospaced))
|
.font(.system(size: 11, weight: .medium, design: .rounded).monospacedDigit())
|
||||||
.foregroundStyle(.primary)
|
.foregroundStyle(.primary)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.fixedSize()
|
.fixedSize()
|
||||||
@@ -225,7 +225,7 @@ struct MacOSControlBar: View {
|
|||||||
|
|
||||||
// Duration
|
// Duration
|
||||||
Text(playerState.formattedDuration)
|
Text(playerState.formattedDuration)
|
||||||
.font(.system(size: 11, weight: .medium, design: .monospaced))
|
.font(.system(size: 11, weight: .medium, design: .rounded).monospacedDigit())
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.fixedSize()
|
.fixedSize()
|
||||||
|
|||||||
Reference in New Issue
Block a user