fix: remove debug colors

This commit is contained in:
louis.pontoise authored and lwouis committed 2020-03-10 14:00:37 +09:00
1 parent ced5ee60c1
commit e588d55ecd
2 files changed
+1 -10

No files matched your search

-8
View File
@@ -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
}
+1 -2
View File
@@ -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)