native macOS codings agent orchestrator prowl.onev.cat
Something went wrong. Try again.
Swift
123456789101112131415161718192021222324252627282930import SwiftUI
struct TerminalTabBackground: View { var isActive: Bool var isPressing: Bool var isDragging: Bool var isHovering: Bool
var body: some View { Group { if isActive { // Selected tab floats as a Liquid Glass surface tinted by the // brightness-ladder fill, for the macOS 26 look. Capsule() .fill(TerminalTabBarColors.activeTabBackground) .glassEffect(.regular, in: Capsule()) } else if isHovering || isPressing || isDragging { Capsule().fill(TerminalTabBarColors.hoveredTabBackground) } else { Capsule().fill(TerminalTabBarColors.inactiveTabBackground) } } // 1pt inset so the capsule floats with a small gap instead of touching the // bar/neighbor edges. Capsule (not a rounded rect) matches the tab's outer // .clipShape(.capsule); a rounded rect's corners would poke past the // capsule clip and get shaved off. .padding(1) }}