diff --git a/Persephone/Components/Browser/Album Browser/AlbumViewItem.swift b/Persephone/Components/Browser/Album Browser/AlbumViewItem.swift index 18643ff..4922516 100644 --- a/Persephone/Components/Browser/Album Browser/AlbumViewItem.swift +++ b/Persephone/Components/Browser/Album Browser/AlbumViewItem.swift @@ -22,8 +22,10 @@ class AlbumViewItem: NSCollectionViewItem { super.viewDidLoad() albumCoverView.wantsLayer = true - albumCoverView.layer?.cornerRadius = 3 + albumCoverView.layer?.backgroundColor = NSColor.black.cgColor + albumCoverView.layer?.cornerRadius = 4 albumCoverView.layer?.borderWidth = 1 + albumCoverView.layer?.masksToBounds = true albumCoverBox.wantsLayer = true albumCoverBox.layer?.cornerRadius = 5 diff --git a/Persephone/Components/Browser/Album Detail/AlbumDetailView.swift b/Persephone/Components/Browser/Album Detail/AlbumDetailView.swift index 94e4b72..8b99cf2 100644 --- a/Persephone/Components/Browser/Album Detail/AlbumDetailView.swift +++ b/Persephone/Components/Browser/Album Detail/AlbumDetailView.swift @@ -9,6 +9,7 @@ import AppKit class AlbumDetailView: NSViewController { + var observer: NSKeyValueObservation? var album: Album? var dataSource = AlbumTracksDataSource() @@ -30,10 +31,17 @@ class AlbumDetailView: NSViewController { albumTracksView.columnAutoresizingStyle = .sequentialColumnAutoresizingStyle albumCoverView.wantsLayer = true - albumCoverView.layer?.cornerRadius = 5 + albumCoverView.layer?.backgroundColor = NSColor.black.cgColor + albumCoverView.layer?.cornerRadius = 6 albumCoverView.layer?.borderWidth = 1 + albumCoverView.layer?.masksToBounds = true setAppearance() + if #available(OSX 10.14, *) { + observer = NSApp.observe(\.effectiveAppearance) { (app, _) in + self.setAppearance() + } + } } override func viewWillAppear() {