mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Update icon color for music control
This commit is contained in:
parent
12d4a0b726
commit
e32c863442
1 changed files with 7 additions and 3 deletions
|
|
@ -224,6 +224,10 @@ struct MusicControlsView: View {
|
||||||
.frame(maxWidth: .infinity, alignment: .center)
|
.frame(maxWidth: .infinity, alignment: .center)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private var brandAccentColor: Color {
|
||||||
|
musicManager.brandAccentColor
|
||||||
|
}
|
||||||
|
|
||||||
private var repeatIcon: String {
|
private var repeatIcon: String {
|
||||||
switch musicManager.repeatMode {
|
switch musicManager.repeatMode {
|
||||||
case .off:
|
case .off:
|
||||||
|
|
@ -240,7 +244,7 @@ struct MusicControlsView: View {
|
||||||
case .off:
|
case .off:
|
||||||
return .white
|
return .white
|
||||||
case .all, .one:
|
case .all, .one:
|
||||||
return .red
|
return brandAccentColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -305,7 +309,7 @@ struct MusicControlsView: View {
|
||||||
case .shuffle:
|
case .shuffle:
|
||||||
HoverButton(
|
HoverButton(
|
||||||
icon: "shuffle",
|
icon: "shuffle",
|
||||||
iconColor: musicManager.isShuffled ? .red : .white,
|
iconColor: musicManager.isShuffled ? brandAccentColor : .white,
|
||||||
scale: .medium
|
scale: .medium
|
||||||
) {
|
) {
|
||||||
MusicManager.shared.toggleShuffle()
|
MusicManager.shared.toggleShuffle()
|
||||||
|
|
@ -323,7 +327,7 @@ struct MusicControlsView: View {
|
||||||
case .lyrics:
|
case .lyrics:
|
||||||
HoverButton(
|
HoverButton(
|
||||||
icon: enableLyrics ? "quote.bubble.fill" : "quote.bubble",
|
icon: enableLyrics ? "quote.bubble.fill" : "quote.bubble",
|
||||||
iconColor: enableLyrics ? Color(nsColor: MusicManager.shared.avgColor) : .white,
|
iconColor: enableLyrics ? brandAccentColor : .white,
|
||||||
scale: .medium
|
scale: .medium
|
||||||
) {
|
) {
|
||||||
enableLyrics.toggle()
|
enableLyrics.toggle()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue