From 696d2b9a040e8b7ded286b9e7e3adc5ef5c430dc Mon Sep 17 00:00:00 2001 From: Jon Sterling Date: Sat, 14 Feb 2026 17:30:19 +0000 Subject: [PATCH] Add grip lines to the bottom bar --- .../AquaWindowBottomBarViewController.swift | 36 +++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) 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..