add an option to see the title and artist name on non notch display

This commit is contained in:
delli 2026-04-29 16:44:31 +02:00
commit 2524bc13c3
6 changed files with 92 additions and 53 deletions

View file

@ -1139,6 +1139,14 @@ struct ContentView: View {
.foregroundStyle(timerManager.timerColor)
.padding(.trailing, 8)
.opacity((coordinator.expandingView.show && coordinator.expandingView.type == .timer && Defaults[.enableSneakPeek] && Defaults[.sneakPeekStyles] == .inline) ? 1 : 0)
} else if Defaults[.showSongMetadataInClosedNotch] && isNonNotchScreen && !musicManager.songTitle.isEmpty {
MarqueeText(
.constant("\(musicManager.songTitle) • \(musicManager.artistName)"),
textColor: Defaults[.coloredSpectrogram] ? Color(nsColor: musicManager.avgColor) : Color.gray,
minDuration: 3,
frameWidth: max(0, effectiveCenterWidth - 16)
)
.padding(.horizontal, 8)
}
}
.clipped()