Skip to content

armgit / cra

Public Imported from GitHub
0

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: "Allow websites to get your theme data" (Arc's --arc-palette-* variables)

Victorbfd996251046
diff --git a/Packages/CraCore/Sources/CraCore/ArcThemeData.swift b/Packages/CraCore/Sources/CraCore/ArcThemeData.swift
new file mode 100644
index 0000000..f4edc37
--- /dev/null
+++ b/Packages/CraCore/Sources/CraCore/ArcThemeData.swift
@@ -0,0 +1,59 @@
+import Foundation
+
+/// Arc's Settings ▸ Advanced "Allow websites to get your theme data": pages get the space's
+/// semantic palette as CSS variables (`--arc-palette-title` … `--arc-palette-minContrastColor`, names
+/// from Arc 1.172.1's binary). Arc stores that palette per space (StorableSidebar.json
+/// `semanticColorPalette.appearanceBased`); each slot is the primary palette (shadedDark, midTone,
+/// tintedLight) or a mix of it with white or black, fitted to Arc's stored values (exact to 1/255
+/// except focus, hover and the light subtitle, within 9/255), and checked live on Arc's default blue
+/// space (dark scheme). Arc puts them on the page without touching its DOM (no inline style, no
+/// <style>); Cra adopts a stylesheet from its isolated world, which the page's markup doesn't show.
+public enum ArcThemeData {
+ public struct Color: Equatable, Sendable {
+ public var rgb: RGB
+ public var alpha: Double
+ public init(_ rgb: RGB, _ alpha: Double = 1) { (self.rgb, self.alpha) = (rgb, alpha) }
+
+ /// `#RRGGBBAA`, alpha always written, as Arc writes them (measured live, Arc 1.172.1).
+ public var css: String {
+ func b(_ v: Double) -> Int { Int((min(1, max(0, v)) * 255).rounded()) }
+ return String(format: "#%02X%02X%02X%02X", b(rgb.r), b(rgb.g), b(rgb.b), b(alpha))
+ }
+ }
+
+ /// Arc's semantic palette for one scheme, slot name → colour, in Arc's slot names.
+ public static func palette(shadedDark sd: RGB, shaded: RGB, midTone mid: RGB, tintedLight tl: RGB, dark: Bool) -> [(String, Color)] {
+ let w = RGB.white, k = RGB.black
+ if dark {
+ return [
+ ("title", Color(w.mixed(with: sd, 0.157))), ("subtitle", Color(k.mixed(with: tl, 0.5))),
+ ("background", Color(k.mixed(with: sd, 0.3))), ("backgroundExtra", Color(k.mixed(with: sd, 0.15))),
+ ("foregroundPrimary", Color(tl)), ("foregroundSecondary", Color(mid)), ("foregroundTertiary", Color(shaded)),
+ ("focus", Color(w.mixed(with: sd, 0.842), 0.81)), ("hover", Color(w.mixed(with: sd, 0.762), 0.48)),
+ ("cutoutColor", Color(sd)), ("maxContrastColor", Color(tl)), ("minContrastColor", Color(sd)),
+ ]
+ }
+ return [
+ ("title", Color(k.mixed(with: sd, 0.3))), ("subtitle", Color(k.mixed(with: tl, 0.782))),
+ ("background", Color(w.mixed(with: sd, 0.105))), ("backgroundExtra", Color(w.mixed(with: sd, 0.01))),
+ ("foregroundPrimary", Color(shaded)), ("foregroundSecondary", Color(mid)), ("foregroundTertiary", Color(tl)),
+ ("focus", Color(w.mixed(with: sd, 0.523))), ("hover", Color(w.mixed(with: sd, 0.209))),
+ ("cutoutColor", Color(tl)), ("maxContrastColor", Color(sd)), ("minContrastColor", Color(tl)),
+ ]
+ }
+
+ /// The palette of a Cra space theme in the scheme its pages see.
+ public static func palette(theme: SpaceTheme, dark: Bool) -> [(String, Color)] {
+ palette(shadedDark: theme.shadedDark, shaded: theme.shaded, midTone: theme.midTone, tintedLight: theme.tintedLight, dark: dark)
+ }
+
+ /// The `:root` declarations a page gets: the palette, then the background's colours.
+ public static func declarations(palette: [(String, Color)], gradient: [String]) -> String {
+ var out = palette.map { "--arc-palette-\($0.0): \($0.1.css);" }
+ // A one-colour theme is Arc's simple background, more colours its gradient (#RRGGBBAA too).
+ let colors = gradient.map { HexColor.components($0).map { Color(RGB($0.r, $0.g, $0.b)).css } ?? $0 }
+ if colors.count == 1 { out.append("--arc-background-simple-color: \(colors[0]);") }
+ else { for (i, c) in colors.prefix(3).enumerated() { out.append("--arc-background-gradient-color\(i): \(c);") } }
+ return out.joined(separator: " ")
+ }
+}
diff --git a/Packages/CraCore/Sources/CraCore/SidebarModel.swift b/Packages/CraCore/Sources/CraCore/SidebarModel.swift
index 7a6b731..dacf3c1 100644
--- a/Packages/CraCore/Sources/CraCore/SidebarModel.swift
+++ b/Packages/CraCore/Sources/CraCore/SidebarModel.swift
@@ -521,6 +521,8 @@ public struct AppSettings: Codable, Equatable {
public var littleWindowArchiveAfter: LittleWindowArchive = .sixHours
/// Arc's Settings ▸ Advanced "When opening Arc, restore windows from previous session", on by default.
public var restoreWindows: Bool = true
+ /// Arc's Settings ▸ Advanced "Allow websites to get your theme data" (ArcThemeData), on by default.
+ public var shareThemeWithWebsites: Bool = true
/// Arc's searchSuggestEnabled: the command bar asks the search engine for suggestions
/// as you type and fills its rows with them.
public var searchSuggestions: Bool = true
@@ -730,6 +732,7 @@ extension AppSettings {
mediaFolders = (try? c.decodeIfPresent([MediaLibrary.Folder].self, forKey: .mediaFolders)) ?? MediaLibrary.Folder.allCases
littleWindowArchiveAfter = (try? c.decodeIfPresent(LittleWindowArchive.self, forKey: .littleWindowArchiveAfter)) ?? .sixHours
restoreWindows = try c.decodeIfPresent(Bool.self, forKey: .restoreWindows) ?? true
+ shareThemeWithWebsites = try c.decodeIfPresent(Bool.self, forKey: .shareThemeWithWebsites) ?? true
searchSuggestions = try c.decodeIfPresent(Bool.self, forKey: .searchSuggestions) ?? true
showSpaceHeaderOnSingleSpace = try c.decodeIfPresent(Bool.self, forKey: .showSpaceHeaderOnSingleSpace) ?? true
sharedFavorites = try c.decodeIfPresent(Bool.self, forKey: .sharedFavorites) ?? false
diff --git a/Packages/CraCore/Sources/CraCore/ThemeTones.swift b/Packages/CraCore/Sources/CraCore/ThemeTones.swift
index 6590be7..59804b7 100644
--- a/Packages/CraCore/Sources/CraCore/ThemeTones.swift
+++ b/Packages/CraCore/Sources/CraCore/ThemeTones.swift
@@ -94,6 +94,16 @@ extension SpaceTheme {
private static let midToneFloor = 0.68, midToneCeiling = 0.794
+ /// Arc's primaryColorPalette.shaded: the theme colour with its OKLab lightness held within
+ /// 0.5…0.794, at the nearer bound the gamut edge of its hue. Arc's default blue space (#010220)
+ /// → #3139FB (0.499), Victor's gold (#F8D558) → #E9B300 (0.794, its midTone too).
+ public static func shaded(_ hex: String?) -> RGB {
+ let c = HexColor.components(hex ?? "") ?? (0.5, 0.5, 0.5)
+ let base = RGB(c.r, c.g, c.b), l = oklabLightness(base)
+ if l < 0.5 { return edge(hex, lightness: 0.5) }
+ return l > midToneCeiling ? edge(hex, lightness: midToneCeiling) : base
+ }
+
private static func paletteBase(_ hex: String?) -> RGB {
let c = HexColor.components(hex ?? "") ?? (0.5, 0.5, 0.5)
let rgb = RGB(c.r, c.g, c.b)
@@ -122,6 +132,7 @@ extension SpaceTheme {
public var shadedDark: RGB { Self.shadedDark(paletteSource) }
public var midTone: RGB { Self.midTone(paletteSource) }
+ public var shaded: RGB { Self.shaded(paletteSource) }
public var tintedLight: RGB { Self.tintedLight(paletteSource) }
}
diff --git a/Packages/CraCore/Tests/CraCoreTests/ArcThemeDataTests.swift b/Packages/CraCore/Tests/CraCoreTests/ArcThemeDataTests.swift
new file mode 100644
index 0000000..8b28bb6
--- /dev/null
+++ b/Packages/CraCore/Tests/CraCoreTests/ArcThemeDataTests.swift
@@ -0,0 +1,57 @@
+import CraCore
+import Testing
+
+/// Arc's semantic palette, as it stores it for a space (a gold theme: shadedDark #6F5600, midTone
+/// #E9B300, tintedLight #FCEDBC), against what ArcThemeData builds from the same primaries.
+struct ArcThemeDataTests {
+ static func rgb(_ hex: Int) -> RGB { RGB(Double(hex >> 16 & 0xff) / 255, Double(hex >> 8 & 0xff) / 255, Double(hex & 0xff) / 255) }
+ static let sd = rgb(0x6F5600), mid = rgb(0xE9B300), tl = rgb(0xFCEDBC)
+
+ static func channelGap(_ a: String, _ b: String) -> Int {
+ func parts(_ s: String) -> [Int] { stride(from: 1, to: 7, by: 2).map { Int(s.dropFirst($0).prefix(2), radix: 16)! } }
+ return zip(parts(a), parts(b)).map { abs($0 - $1) }.max()!
+ }
+
+ @Test(arguments: [
+ (false, "title", "#211A00"), (false, "background", "#F1EEE3"), (false, "backgroundExtra", "#FEFDFC"),
+ (false, "foregroundPrimary", "#E9B300"), (false, "foregroundTertiary", "#FCEDBC"), (false, "maxContrastColor", "#6F5600"),
+ (false, "hover", "#E2DDC8"), (false, "subtitle", "#C6BB91"), (false, "focus", "#B7AA75"),
+ (true, "title", "#E9E6D6"), (true, "background", "#211A00"), (true, "backgroundExtra", "#110D00"),
+ (true, "foregroundPrimary", "#FCEDBC"), (true, "subtitle", "#7E775E"), (true, "cutoutColor", "#6F5600"),
+ (true, "focus", "#8B7721CF"), (true, "hover", "#9684367A"),
+ ])
+ func matchesArcsStoredPalette(dark: Bool, slot: String, arc: String) throws {
+ let ours = try #require(ArcThemeData.palette(shadedDark: Self.sd, shaded: Self.mid, midTone: Self.mid, tintedLight: Self.tl, dark: dark)
+ .first { $0.0 == slot }).1.css
+ let full = arc.count == 7 ? arc + "FF" : arc
+ #expect(abs(Int(ours.suffix(2), radix: 16)! - Int(full.suffix(2), radix: 16)!) <= 1, "Arc's alpha, always written")
+ #expect(Self.channelGap(ours, full) <= 9, "\(slot): \(ours) vs Arc's \(full)")
+ }
+
+ @Test func declaresEveryNameArcUses() {
+ let css = ArcThemeData.declarations(palette: ArcThemeData.palette(shadedDark: Self.sd, shaded: Self.mid, midTone: Self.mid, tintedLight: Self.tl, dark: false),
+ gradient: ["#F8D558", "#A4F454"])
+ for name in ["title", "subtitle", "background", "backgroundExtra", "foregroundPrimary", "foregroundSecondary",
+ "foregroundTertiary", "focus", "hover", "cutoutColor", "maxContrastColor", "minContrastColor"] {
+ #expect(css.contains("--arc-palette-\(name): #"))
+ }
+ #expect(css.contains("--arc-background-gradient-color1: #A4F454FF;"))
+ }
+
+ /// Measured live on Arc's default blue palette, dark scheme, 7 Nov 2026: what a page read from
+ /// getComputedStyle, against the palette built from that palette's primaries (shadedDark #212AFB,
+ /// shaded #3139FB, midTone #8489FB, tintedLight #ECEDFE, read off the same page).
+ @Test(arguments: [
+ ("title", "#DEDFFDFF"), ("subtitle", "#76777FFF"), ("background", "#0A0D4BFF"), ("backgroundExtra", "#050625FF"),
+ ("foregroundPrimary", "#ECEDFEFF"), ("foregroundSecondary", "#8489FBFF"), ("foregroundTertiary", "#3139FBFF"),
+ ("focus", "#4D54FBCE"), ("hover", "#5D64FB7A"), ("cutoutColor", "#212AFBFF"), ("maxContrastColor", "#ECEDFEFF"),
+ ("minContrastColor", "#212AFBFF"),
+ ])
+ func matchesArcLiveOnItsDefaultTheme(slot: String, arc: String) throws {
+ let palette = ArcThemeData.palette(shadedDark: Self.rgb(0x212AFB), shaded: Self.rgb(0x3139FB), midTone: Self.rgb(0x8489FB),
+ tintedLight: Self.rgb(0xECEDFE), dark: true)
+ let ours = try #require(palette.first { $0.0 == slot }).1.css
+ #expect(abs(Int(ours.suffix(2), radix: 16)! - Int(arc.suffix(2), radix: 16)!) <= 1, "alpha within a level")
+ #expect(Self.channelGap(ours, arc) <= 10, "\(slot): \(ours) vs Arc's \(arc)")
+ }
+}
diff --git a/Sources/Cra/Services/BrowserManager.swift b/Sources/Cra/Services/BrowserManager.swift
index abd923c..f6cf9d5 100644
--- a/Sources/Cra/Services/BrowserManager.swift
+++ b/Sources/Cra/Services/BrowserManager.swift
@@ -1080,9 +1080,24 @@ final class BrowserManager: NSObject, @preconcurrency CraBrowserDelegate {
guard let id = tabID(of: browser) else { return }
// Start-up phases: firstPageShown, then the page's navigation committed, then loaded.
if committed, id == visibleTabID { Perf.phase("firstPageCommitted") }
+ if committed { shareTheme(id, with: browser) }
delegate?.browserManagerDidUpdate(id)
}
+ /// Arc's "Allow websites to get your theme data": the space's palette as `--arc-palette-*` and
+ /// `--arc-background-*` variables on the page's root (ArcThemeData), in the scheme its pages see.
+ /// A stylesheet adopted from Cra's world, so the page's markup shows no trace of it, as in Arc.
+ private func shareTheme(_ id: UUID, with browser: CraBrowser) {
+ let systemDark = NSApp?.effectiveAppearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
+ guard let css = store.themeDataCSS(item: id, systemDark: systemDark) else { return }
+ guard let literal = String(data: (try? JSONSerialization.data(withJSONObject: [css], options: [])) ?? Data(), encoding: .utf8) else { return }
+ let script = "(()=>{let s=window.__craArcTheme;if(!s){s=window.__craArcTheme=new CSSStyleSheet();"
+ + "document.adoptedStyleSheets=[...document.adoptedStyleSheets,s];}s.replaceSync(\(literal)[0]);})()"
+ guard let params = try? JSONSerialization.data(withJSONObject: ["expression": script]),
+ let json = String(data: params, encoding: .utf8) else { return }
+ browser.evaluate(inIsolatedWorld: PageScript.world, params: json) { _, _ in }
+ }
+
func browser(_ browser: CraBrowser, didChangeProgress progress: Double) {
guard let id = tabID(of: browser) else { return }
runtimes[id]?.progress = progress
diff --git a/Sources/Cra/Services/SidebarStore.swift b/Sources/Cra/Services/SidebarStore.swift
index f756d77..4c7074e 100644
--- a/Sources/Cra/Services/SidebarStore.swift
+++ b/Sources/Cra/Services/SidebarStore.swift
@@ -423,6 +423,16 @@ final class SidebarStore {
var orderedSpaces: [Space] { spaceOrder.compactMap { spaces[$0] } }
/// Arc's single-space mode: one space and the header turned off. Incognito and Blank Windows keep theirs.
+ /// Arc's "Allow websites to get your theme data": the `:root` rule a tab's pages get, from its
+ /// space's theme in the scheme pages see (View ▸ Appearance, else the Mac's); nil when off or
+ /// incognito.
+ func themeDataCSS(item id: UUID, systemDark: Bool) -> String? {
+ guard settings.shareThemeWithWebsites, !isIncognito(item: id),
+ let theme = spaceID(ofItem: id).flatMap({ spaces[$0]?.theme }) else { return nil }
+ let dark = settings.websiteAppearance == .dark || (settings.websiteAppearance == .automatic && systemDark)
+ return ":root { " + ArcThemeData.declarations(palette: ArcThemeData.palette(theme: theme, dark: dark), gradient: theme.colors) + " }"
+ }
+
func hidesSpaceHeader(_ id: UUID) -> Bool {
!settings.showSpaceHeaderOnSingleSpace && spaceOrder.count == 1 && !isStandalone(space: id)
}
diff --git a/Sources/Cra/UI/Settings/AdvancedPane.swift b/Sources/Cra/UI/Settings/AdvancedPane.swift
index 3a225dc..e9e3624 100644
--- a/Sources/Cra/UI/Settings/AdvancedPane.swift
+++ b/Sources/Cra/UI/Settings/AdvancedPane.swift
@@ -32,6 +32,10 @@ struct AdvancedPane: View {
// Arc: Settings ▸ Advanced "Play Arc sound effects".
SettingsCheckbox(title: "Play Cra sound effects", isOn: $store.settings.soundEffects)
}
+ SettingsFormRow(label: "Websites:") {
+ // Arc: Settings ▸ Advanced "Allow websites to get your theme data" (--arc-palette-* variables).
+ SettingsCheckbox(title: "Allow websites to get your theme data", isOn: $store.settings.shareThemeWithWebsites)
+ }
SettingsFormRow(label: "When quitting Cra:") {
SettingsCheckbox(title: "Warn before quitting", isOn: $store.settings.warnBeforeQuitting)
// Arc: Settings ▸ Advanced "When opening Arc, restore windows from previous session".
diff --git a/Tests/BrowserManagerLifecycleTests.swift b/Tests/BrowserManagerLifecycleTests.swift
index cb6402e..747909b 100644
--- a/Tests/BrowserManagerLifecycleTests.swift
+++ b/Tests/BrowserManagerLifecycleTests.swift
@@ -75,6 +75,7 @@ enum BrowserManagerLifecycleTests {
embeddedPageHandoffCase()
await snapshotCase()
loadingTabCase()
+ themeDataCase()
await sleepCase("an unchanged idle page sleeps", shouldSleep: true) { _, _ in }
await sleepCase("loading started while the probe was pending stays awake") { _, rt in rt.browser.setLoading(true) }
await sleepCase("a completed same-URL reload invalidates the old probe") { _, rt in
@@ -341,6 +342,27 @@ enum BrowserManagerLifecycleTests {
manager.closeAll()
}
+ /// Arc's "Allow websites to get your theme data" (on by default): each page that commits gets the
+ /// space's palette as `--arc-palette-*` variables from Cra's world; off, pages get none.
+ @MainActor
+ private static func themeDataCase() {
+ let store = SidebarStore()
+ let manager = BrowserManager(store: store, favicons: FaviconCache(), container: NSView())
+ let id = store.createTab(url: "https://example.test/themed").id
+ let rt = manager.ensureRuntime(for: id)!
+ let themed = { rt.browser.replies.filter { $0.method == isolatedProbe }.count }
+ let before = themed()
+ manager.browser(rt.browser, didChangeCommittedLoad: true)
+ expect(themed() == before + 1 && rt.browser.lastIsolatedParams.contains("--arc-palette-title: #")
+ && rt.browser.lastIsolatedParams.contains("adoptedStyleSheets"), "a committed page gets the theme's variables")
+ manager.browser(rt.browser, didChangeCommittedLoad: false)
+ expect(themed() == before + 1, "a load that hasn't committed gets nothing yet")
+ store.settings.shareThemeWithWebsites = false
+ manager.browser(rt.browser, didChangeCommittedLoad: true)
+ expect(themed() == before + 1, "with the setting off, pages get none")
+ manager.closeAll()
+ }
+
@MainActor
private static func sleepCase(_ message: String, shouldSleep: Bool = false, reply: String? = idleReply,
mutate: (BrowserManager, TabRuntime) -> Void) async {
diff --git a/Tests/BrowserManagerSupport/AppServices.swift b/Tests/BrowserManagerSupport/AppServices.swift
index 345b62c..cc3c040 100644
--- a/Tests/BrowserManagerSupport/AppServices.swift
+++ b/Tests/BrowserManagerSupport/AppServices.swift
@@ -20,7 +20,13 @@ struct TestItem {
}
enum TestRoot { case today }
@MainActor final class SidebarStore {
- struct Settings { var autoPictureInPicture = false }
+ struct Settings {
+ var autoPictureInPicture = false
+ var shareThemeWithWebsites = true
+ }
+ func themeDataCSS(item: UUID, systemDark: Bool) -> String? {
+ settings.shareThemeWithWebsites ? ":root { --arc-palette-title: #211A00FF; }" : nil
+ }
var settings = Settings()
var items: [UUID: TestItem] = [:]
func item(_ id: UUID) -> TestItem? { items[id] }
diff --git a/Tests/Scenarios/arc-theme-data.scenario b/Tests/Scenarios/arc-theme-data.scenario
new file mode 100644
index 0000000..b8b606e
--- /dev/null
+++ b/Tests/Scenarios/arc-theme-data.scenario
@@ -0,0 +1,11 @@
+# Arc's "Allow websites to get your theme data" (Arc 1.172.1, docs/arc-parity.md): a page reads the
+# space's palette as --arc-palette-* variables on its root, written #RRGGBBAA as Arc writes them,
+# with no inline style on <html> (Arc leaves the page's markup alone too).
+budget rss=700 stalls50=10
+cra://open?url=${PAGE}?n=theme
+expect-log loaded 127\.0\.0\.1 \(HTTP 200\)
+wait 1
+cra://debug?cdp=Runtime.evaluate&params={"expression":"'v-'+getComputedStyle(document.documentElement).getPropertyValue('--arc-palette-title').trim()+'-'+(document.documentElement.getAttribute('style')||'none')"}
+expect-log Cra cdp Runtime.evaluate .*"value":"v-#[0-9A-F]{8}-none"
+cra://debug?cdp=Runtime.evaluate&params={"expression":"'bg-'+getComputedStyle(document.documentElement).getPropertyValue('--arc-palette-backgroundExtra').trim()"}
+expect-log Cra cdp Runtime.evaluate .*"value":"bg-#[0-9A-F]{6}FF"
diff --git a/docs/arc-parity.md b/docs/arc-parity.md
index a40b030..a0cae6d 100644
--- a/docs/arc-parity.md
+++ b/docs/arc-parity.md
@@ -29,7 +29,7 @@ or Arc-only service), per CONTRIBUTING.md.
| Cast | View ▸ Cast | done | Chrome's Cast bubble (IDC_ROUTE_MEDIA). |
| Find and Replace, Use Selection to Find, Jump to Selection | Edit ▸ Find | missing | |
| Sound effects | Settings ▸ Advanced "Play Arc sound effects" | done | Settings ▸ Advanced ▸ Play Cra sound effects gates the capture shutter. |
-| Theme data for websites | Settings ▸ Advanced "Allow websites to get your theme data" | missing | Arc exposes the space's palette to pages. |
+| Theme data for websites | Settings ▸ Advanced "Allow websites to get your theme data" | done | `--arc-palette-*` and `--arc-background-*` as #RRGGBBAA, from the space's theme (ArcThemeData; fitted to Arc's stored palette, checked live). |
| Window dragging from the top of webpages | Settings ▸ Advanced | measured | With the toolbar hidden, Arc drags the window from the top 56 pt of the page (66 pt below the window's top); 58 pt in, the page gets the drag. Cra's strip reaches 4 pt into the page. Needs clicks in that band held until the pointer moves, across Chromium's page windows. |
| Restore windows from previous session | Settings ▸ Advanced | done | Settings ▸ Advanced; off keeps the window in use last. |
| Block Cookie Banners | Settings ▸ General | missing | Cra blocks ads and trackers only. |
@@ -86,7 +86,7 @@ gains "New Profile".
| General | Previews Settings…, Block Cookie Banners |
| Profiles | "New documents" app (Arc's Notes/Easels); Privacy, Passwords, Credit Cards and Notifications done |
| Links | "Open Little Arc when clicking on links with ⌥⌘ held"; Archive Little Windows after done |
-| Advanced | window dragging from the top of webpages, Shared Quotes (arc.net), websites get theme data, Enable Boosts (sound effects and restore windows done) |
+| Advanced | window dragging from the top of webpages (measured), Shared Quotes (arc.net), Enable Boosts (sound effects, restore windows and theme data done) |
| Icon | Cra has its own icon picker |
## 5. Animations and styling
@@ -119,6 +119,9 @@ in this sweep (Essential Shortcuts window, Library pages).
- Sidebar tab menu: Change Icon… and Share ▸.
- Settings ▸ Advanced ▸ "When opening Cra, restore windows from previous session".
- Show Little Window "Open In" Menu (⇧⌘O): the Little Window's list of spaces.
+- Settings ▸ Advanced ▸ "Allow websites to get your theme data": Arc's `--arc-palette-*` variables,
+ measured live in Arc (names, #RRGGBBAA format, no trace in the page's markup) and fitted to the
+ semantic palette Arc stores per space.
## Left for later, and why
@@ -127,7 +130,5 @@ in this sweep (Essential Shortcuts window, Library pages).
a localhost server).
- Easels and Notes: whole document types with their own editors; same approach once Boosts is in.
- AppleScript dictionary (a new way for other apps to drive Cra; worth a decision on what it may do,
- as for cra:// URLs), Find and Replace, cookie banner blocking, theme data for websites (Arc injects
- `--arc-palette-*` and `--arc-background-*` variables; names confirmed, values not measured: Little Arc
- on a file page injects none), window dragging from the top of pages (measured, above), Previews and
+ as for cra:// URLs), Find and Replace, cookie banner blocking, window dragging from the top of pages (measured, above), Previews and
Join Meeting: not started.