Skip to content

Commit

Permalink
macOS: adjust mini player hover background color
Browse files Browse the repository at this point in the history
  • Loading branch information
BLeeEZ committed Jan 1, 2025
1 parent 09874a9 commit df75e67
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Amperfy/Screens/View/PlayableTableCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ class PlayableTableCell: BasicTableCell {
let tableView = queueVC.tableView {
queueVC.tableView(tableView, commit: .delete, forRowAt: playerIndex.asIndexPath)
}
if let playerIndexCb = playerIndexCb,
let playerIndex = playerIndexCb(self),
let popupPlayerVC = rootView as? PopupPlayerVC,
let tableView = popupPlayerVC.tableView {
popupPlayerVC.tableView(tableView, commit: .delete, forRowAt: playerIndex.asIndexPath)
}
}

@IBAction func playButtonPressed(_ sender: Any) {
Expand Down Expand Up @@ -377,7 +383,9 @@ class PlayableTableCell: BasicTableCell {
}
self.cacheIconImage.tintColor = appDelegate.storage.settings.themePreference.asColor
optionsButton.imageView?.tintColor = appDelegate.storage.settings.themePreference.asColor
backgroundColor = .secondarySystemGroupedBackground
backgroundColor = (rootView is PopupPlayerVC) ?
.secondarySystemGroupedBackground.withAlphaComponent(0.2) :
.secondarySystemGroupedBackground
} else {
playOverArtworkButton.isHidden = true
playOverNumberButton.isHidden = true
Expand Down

0 comments on commit df75e67

Please sign in to comment.