diff --git a/Sources/AquaKit/Windows/AquaWindowBottomBarViewController.swift b/Sources/AquaKit/Windows/AquaWindowBottomBarViewController.swift index fb98993..86eef48 100644 --- a/Sources/AquaKit/Windows/AquaWindowBottomBarViewController.swift +++ b/Sources/AquaKit/Windows/AquaWindowBottomBarViewController.swift @@ -18,9 +18,41 @@ open class AquaWindowBottomBarViewController: ContainerViewController { dividerPath.lineWidth = 1 return dividerPath } + + static var gradient: NSGradient! { + let color1 = NSColor(light: #colorLiteral(red: 0.9262896776, green: 0.9262896776, blue: 0.9262896776, alpha: 1), dark: .underPageBackgroundColor.highlight(withLevel: 0.5)!.withAlphaComponent(0.2)) + let color2 = NSColor(light: #colorLiteral(red: 0.8432617784, green: 0.8432616591, blue: 0.8432617784, alpha: 1), dark: .underPageBackgroundColor.shadow(withLevel: 0.6)!.withAlphaComponent(0.2)) + return NSGradient(colors: [color1, color2])! + } + + func drawGrip(withCornerInset cornerInset: CGFloat, lineSpacing: CGFloat, lineCount: Int) { + let cx = bounds.maxX - cornerInset + let cy = bounds.minY + cornerInset + + let gripPath = NSBezierPath() + + for i in 0..