This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import AppKit | |
| /// Custom drawing of a Table's Header Row by darkening the background to a light gray rather than just being white. | |
| class GradientTableHeaderCell: NSTableHeaderCell { | |
| /// Light Mode Gradient | |
| var backgroundFillGradient: NSGradient! { | |
| NSGradient(colorsAndLocations: | |
| (NSColor.secondarySystemFill.withAlphaComponent(0.55), 0.0), // Bottom | |
| (NSColor.secondarySystemFill.withAlphaComponent(0.075), 1.0) // Top |