Skip to content

Commit

Permalink
fix: remove debug colors
Browse files Browse the repository at this point in the history
  • Loading branch information
louis.pontoise authored and lwouis committed Mar 10, 2020
1 parent ced5ee6 commit e588d55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions alt-tab-macos/ui/Cell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}
Expand Down
3 changes: 1 addition & 2 deletions alt-tab-macos/ui/ThumbnailsPanel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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)
Expand Down

0 comments on commit e588d55

Please sign in to comment.