mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
add an option to see the title and artist name on non notch display
This commit is contained in:
parent
a6d5251842
commit
2524bc13c3
6 changed files with 92 additions and 53 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue