Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions boringNotch/components/Notch/NotchHomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// boringNotch
//
// Created by Hugo Persson on 2024-08-18.
// Modified by Harsh Vardhan Goswami & Richard Kunkli & Mustafa Ramadan
// Modified by Harsh Vardhan Goswami & Richard Kunkli & Mustafa Ramadan & Dimitris Chatzigeorgiou
//

import Combine
Expand Down Expand Up @@ -173,17 +173,17 @@ struct MusicControlsView: View {
let v = scalar.value
return v >= 0x0600 && v <= 0x06FF
}
MarqueeText(
.constant(line),
font: .subheadline,
nsFont: .subheadline,
textColor: musicManager.isFetchingLyrics ? .gray.opacity(0.7) : .gray,
frameWidth: width
)
.font(isPersian ? .custom("Vazirmatn-Regular", size: NSFont.preferredFont(forTextStyle: .subheadline).pointSize) : .subheadline)
.lineLimit(1)
.opacity(musicManager.isPlaying ? 1 : 0)
.transition(.opacity.combined(with: .move(edge: .top)))
Text(line)
.font(isPersian ? .custom("Vazirmatn-Regular", size: NSFont.preferredFont(forTextStyle: .subheadline).pointSize) : .subheadline)
.lineLimit(1)
.opacity(musicManager.isPlaying ? 1 : 0)
.transition(.asymmetric(
insertion: .opacity.combined(with: .move(edge: .bottom)),
removal: .opacity.combined(with: .move(edge: .top))
))
.id(line)
.animation(.easeInOut(duration: 0.5), value: line)
}
}
}
Expand Down