fix: remove debug colors
This commit is contained in:
1 parent
ced5ee60c1
commit
e588d55ecd
2 files changed
+1
-10
No files matched your search
@@ -20,13 +20,7 @@ class Cell: NSCollectionViewItem {
|
|||||||
let vStackView = makeVStackView(hStackView)
|
let vStackView = makeVStackView(hStackView)
|
||||||
let shadow = Cell.makeShadow(.gray)
|
let shadow = Cell.makeShadow(.gray)
|
||||||
thumbnail.shadow = shadow
|
thumbnail.shadow = shadow
|
||||||
thumbnail.wantsLayer = true
|
|
||||||
thumbnail.layer!.backgroundColor = NSColor.blue.cgColor
|
|
||||||
appIcon.shadow = shadow
|
appIcon.shadow = shadow
|
||||||
appIcon.wantsLayer = true
|
|
||||||
appIcon.layer!.backgroundColor = NSColor.green.cgColor
|
|
||||||
vStackView.wantsLayer = true
|
|
||||||
vStackView.layer!.backgroundColor = NSColor.gray.cgColor
|
|
||||||
view = vStackView
|
view = vStackView
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,8 +83,6 @@ class Cell: NSCollectionViewItem {
|
|||||||
private func makeHStackView() -> NSStackView {
|
private func makeHStackView() -> NSStackView {
|
||||||
let hStackView = NSStackView()
|
let hStackView = NSStackView()
|
||||||
hStackView.spacing = Preferences.cellPadding
|
hStackView.spacing = Preferences.cellPadding
|
||||||
label.wantsLayer = true
|
|
||||||
label.layer!.backgroundColor = NSColor.brown.cgColor
|
|
||||||
hStackView.setViews([appIcon, label, hiddenIcon, minimizedIcon, spaceIcon], in: .leading)
|
hStackView.setViews([appIcon, label, hiddenIcon, minimizedIcon, spaceIcon], in: .leading)
|
||||||
return hStackView
|
return hStackView
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ class ThumbnailsPanel: NSPanel, NSCollectionViewDataSource, NSCollectionViewDele
|
|||||||
backgroundView.state = .active
|
backgroundView.state = .active
|
||||||
backgroundView.wantsLayer = true
|
backgroundView.wantsLayer = true
|
||||||
backgroundView.layer!.cornerRadius = Preferences.windowCornerRadius!
|
backgroundView.layer!.cornerRadius = Preferences.windowCornerRadius!
|
||||||
backgroundView.layer!.backgroundColor = .white
|
|
||||||
backgroundView.addSubview(collectionView)
|
backgroundView.addSubview(collectionView)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +49,7 @@ class ThumbnailsPanel: NSPanel, NSCollectionViewDataSource, NSCollectionViewDele
|
|||||||
collectionView.dataSource = self
|
collectionView.dataSource = self
|
||||||
collectionView.delegate = self
|
collectionView.delegate = self
|
||||||
collectionView.collectionViewLayout = CollectionViewCenterFlowLayout()
|
collectionView.collectionViewLayout = CollectionViewCenterFlowLayout()
|
||||||
collectionView.backgroundColors = [.yellow]
|
collectionView.backgroundColors = [.clear]
|
||||||
collectionView.isSelectable = true
|
collectionView.isSelectable = true
|
||||||
collectionView.allowsMultipleSelection = false
|
collectionView.allowsMultipleSelection = false
|
||||||
collectionView.register(Cell.self, forItemWithIdentifier: cellId)
|
collectionView.register(Cell.self, forItemWithIdentifier: cellId)
|
||||||
|
|||||||
Reference in new issue
Block a user