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.
Arc parity: the toolbar over an Easel blends into its canvas
Victor5ea57ec5fc9d
diff --git a/Sources/Cra/UI/Easel/EaselBrowser.swift b/Sources/Cra/UI/Easel/EaselBrowser.swiftindex ed48cfe..feec5f4 100644--- a/Sources/Cra/UI/Easel/EaselBrowser.swift+++ b/Sources/Cra/UI/Easel/EaselBrowser.swift@@ -44,6 +44,8 @@ final class EaselBrowser: CraBrowser, NativePage {// Arc's canvas is the window's backdrop under a 50 % black veil (#63614B over a gold// space's #C6BE96 sidebar): the card lets the backdrop through, the canvas veils it.self.delegate?.browser?(self, didReportBackgroundColor: "clear")+ // A dark bar colour, so the toolbar's glyphs and address are light over the veil.+ self.delegate?.browser(self, didReportThemeColor: "#1E1E1E")}}diff --git a/Sources/Cra/UI/SplitView/PaneCardView.swift b/Sources/Cra/UI/SplitView/PaneCardView.swiftindex e61c5d2..869afac 100644--- a/Sources/Cra/UI/SplitView/PaneCardView.swift+++ b/Sources/Cra/UI/SplitView/PaneCardView.swift@@ -168,7 +168,9 @@ final class PaneCardView: NSView {// gradient plus about +9/+11/+12 per channel, i.e. a white veil at ~0.2.layer?.backgroundColor = transparent || hasPage ? NSColor.clear.cgColor : NSColor(white: 1, alpha: isDark ? 0.08 : 0.2).cgColorlet bar = developerBar ?? toolbarColor.map { NSColor(Color(hex: $0)) } ?? .white- toolbarBackground.layer?.backgroundColor = (hasPage && !transparent ? bar : NSColor.clear).cgColor+ // A page of Cra's own over the backdrop (an Easel) takes its veil under the toolbar too, as Arc's does.+ let veiled = pageColor == "clear" ? NSColor(white: 0, alpha: 0.5) : bar+ toolbarBackground.layer?.backgroundColor = (hasPage && !transparent ? veiled : NSColor.clear).cgColor// "clear": a page of Cra's own that lets the window's backdrop through (an Easel, as in Arc).let page = pageColor == "clear" ? NSColor.clear : pageColor.map { NSColor(Color(hex: $0)) } ?? CraBrowser.pageCanvasColorpageBackground.layer?.backgroundColor = (hasPage && !transparent ? page : NSColor.clear).cgColordiff --git a/docs/arc-parity.md b/docs/arc-parity.mdindex fdc9c10..dc80e3c 100644--- a/docs/arc-parity.md+++ b/docs/arc-parity.md@@ -15,7 +15,7 @@ or Arc-only service), per CONTRIBUTING.md.| Arc feature | Where in Arc | Cra | Notes ||---|---|---|---|| Boosts (per-site CSS/JS, colours, fonts, Zap) | URL bar ✎, Library ▸ Boosts, Settings ▸ Advanced "Enable Boosts" | missing | Biggest local feature still absent. |-| Easels | File ▸ New Easel ⌃⇧E, Library ▸ Easels | partial | File ▸ New Easel (⌃⇧E): canvas, title, Pointer/Image/Text/Ellipse/Rectangle/Arrow/Freehand, pictures by file, paste or drop, saved per easel. Library ▸ Easels and Window ▸ View Easels… done. The canvas shows the window's backdrop under a 50 % veil as in Arc. Missing: the toolbar strip above it stays white (Arc's blends into the canvas), captures into an easel, Aa's choice of font (the pill's + and − work); sharing is *skip* (cloud). |+| Easels | File ▸ New Easel ⌃⇧E, Library ▸ Easels | partial | File ▸ New Easel (⌃⇧E): canvas, title, Pointer/Image/Text/Ellipse/Rectangle/Arrow/Freehand, pictures by file, paste or drop, saved per easel. Library ▸ Easels and Window ▸ View Easels… done. The canvas shows the window's backdrop under a 50 % veil as in Arc. The toolbar strip above it takes the same veil. Missing: captures into an easel, Aa's choice of font (the pill's + and − work); sharing is *skip* (cloud). || Notes | File ▸ New Note ⌃⇧N, ⌃⌥N in split, Help ▸ Export Arc Notes | *skip* | Arc 1.172.1 no longer creates Notes: New Note is gone from the File menu and ⌃⇧N does nothing; only Help ▸ Export Arc Notes is left. || Library ▸ Media | Window ▸ View Media…, Library rail | done | Off until Show Media; ⋯ picks the folders (Cra has no captures folder). || Essential Keyboard Shortcuts window | Help ▸ Essential Keyboard Shortcuts, Settings ▸ Shortcuts | done | 475×462 floating dark panel, five rows of key caps, "View All ↗". |