The open-source Arc replacement for macOS. Spaces, pinned tabs, split view, Little Windows and Arc's shortcuts on Chromium, with your Arc sidebar imported in one go.
The command bar's glow stays around the bar near the top of the screen
Victor062ef6270880
diff --git a/Sources/Cra/UI/CommandBar/CommandBarView.swift b/Sources/Cra/UI/CommandBar/CommandBarView.swiftindex d9c09f6..e09520f 100644--- a/Sources/Cra/UI/CommandBar/CommandBarView.swift+++ b/Sources/Cra/UI/CommandBar/CommandBarView.swift@@ -298,8 +298,8 @@ final class CommandBarView: NSView {addSubview(inner, positioned: .above, relativeTo: material)innerSplash = innerlet margin = Self.splashMargin- let panel = NSPanel(contentRect: window.frame.insetBy(dx: -margin, dy: -margin), styleMask: [.borderless, .nonactivatingPanel],- backing: .buffered, defer: false)+ let panel = SplashPanel(contentRect: window.frame.insetBy(dx: -margin, dy: -margin), styleMask: [.borderless, .nonactivatingPanel],+ backing: .buffered, defer: false)panel.backgroundColor = .clearpanel.isOpaque = falsepanel.hasShadow = false@@ -346,6 +346,14 @@ final class CommandBarView: NSView {}}+/// The glow's panel reaches 420 pt past the bar, so near the top of the screen it crosses the+/// menu bar, and AppKit moves a window that does down below it: the glow sat under the bar, not+/// around it (a Little Window's bar is a third of the way down a small window). Its frame is+/// left as asked.+private final class SplashPanel: NSPanel {+ override func constrainFrameRect(_ frameRect: NSRect, to screen: NSScreen?) -> NSRect { frameRect }+}+/// Arc's SplashView: `Color(nsColor:)` clipped to a 12 pt continuous rounded rectangle, blurred and/// faded by one ease-out animation of 1.2 s that starts as it appears.private struct CommandBarSplash: View {