You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
854 B
22 lines
854 B
// Copyright © 2015 Abhishek Banthia |
|
|
|
import Foundation |
|
|
|
var avenirLightFont: NSFont { |
|
if let avenirFont = NSFont(name: "Avenir-Light", size: 12) { |
|
return avenirFont |
|
} |
|
return NSFont.systemFont(ofSize: 12) |
|
} |
|
|
|
extension ParentPanelController { |
|
func setupUpcomingEventViewCollectionViewIfNeccesary() { |
|
if upcomingEventCollectionView != nil { |
|
upcomingEventCollectionView.enclosingScrollView?.scrollerInsets = NSEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) |
|
upcomingEventCollectionView.enclosingScrollView?.backgroundColor = NSColor.clear |
|
upcomingEventCollectionView.setAccessibility("UpcomingEventCollectionView") |
|
upcomingEventCollectionView.dataSource = upcomingEventsDataSource |
|
upcomingEventCollectionView.delegate = upcomingEventsDataSource |
|
} |
|
} |
|
}
|
|
|