diff --git a/alt-tab-macos/ui/Cell.swift b/alt-tab-macos/ui/Cell.swift index d1d1f18f..ad7c2581 100644 --- a/alt-tab-macos/ui/Cell.swift +++ b/alt-tab-macos/ui/Cell.swift @@ -20,13 +20,7 @@ class Cell: NSCollectionViewItem { let vStackView = makeVStackView(hStackView) let shadow = Cell.makeShadow(.gray) thumbnail.shadow = shadow - thumbnail.wantsLayer = true - thumbnail.layer!.backgroundColor = NSColor.blue.cgColor appIcon.shadow = shadow - appIcon.wantsLayer = true - appIcon.layer!.backgroundColor = NSColor.green.cgColor - vStackView.wantsLayer = true - vStackView.layer!.backgroundColor = NSColor.gray.cgColor view = vStackView } @@ -89,8 +83,6 @@ class Cell: NSCollectionViewItem { private func makeHStackView() -> NSStackView { let hStackView = NSStackView() hStackView.spacing = Preferences.cellPadding - label.wantsLayer = true - label.layer!.backgroundColor = NSColor.brown.cgColor hStackView.setViews([appIcon, label, hiddenIcon, minimizedIcon, spaceIcon], in: .leading) return hStackView } diff --git a/alt-tab-macos/ui/ThumbnailsPanel.swift b/alt-tab-macos/ui/ThumbnailsPanel.swift index bdc263c3..0b5c4c90 100644 --- a/alt-tab-macos/ui/ThumbnailsPanel.swift +++ b/alt-tab-macos/ui/ThumbnailsPanel.swift @@ -41,7 +41,6 @@ class ThumbnailsPanel: NSPanel, NSCollectionViewDataSource, NSCollectionViewDele backgroundView.state = .active backgroundView.wantsLayer = true backgroundView.layer!.cornerRadius = Preferences.windowCornerRadius! - backgroundView.layer!.backgroundColor = .white backgroundView.addSubview(collectionView) } @@ -50,7 +49,7 @@ class ThumbnailsPanel: NSPanel, NSCollectionViewDataSource, NSCollectionViewDele collectionView.dataSource = self collectionView.delegate = self collectionView.collectionViewLayout = CollectionViewCenterFlowLayout() - collectionView.backgroundColors = [.yellow] + collectionView.backgroundColors = [.clear] collectionView.isSelectable = true collectionView.allowsMultipleSelection = false collectionView.register(Cell.self, forItemWithIdentifier: cellId)