feat(workspace): focus mode — recession, hover reveal, soft caret centering (#87)

Map #21 build child. Toggle via View menu / ⌘⇧F; panes and toolbar
recede, overlay hover reveal (left: rail+library, right: mentor),
soft caret centering while typing, loud save failure, ⌘S armed in
focus. Full suite green; calibration gate #88 judges calm.
This commit is contained in:
AlexKucera committed 2026-10-09 11:11:36 +02:00
1 parent 99aa3d2faf
commit b0ab800d3d
12 files changed
+550 -98

No files matched your search

+7
View File
@@ -19,6 +19,13 @@ enum DesignTokens {
static let radius: CGFloat = 10
/// #21: NSColor twin of `background` — the focus-mode editor ground
/// (NSColor can't be derived from SwiftUI Color at runtime).
/// ponytail: nonisolated(unsafe) — NSColor isn't Sendable; never mutated.
nonisolated(unsafe) static let workspaceBackground = NSColor(
red: 0xFA / 255, green: 0xFA / 255, blue: 0xF7 / 255, alpha: 1,
)
/// The workspace grid: rail | posts library | editor | mentor (grid-template-columns
/// `56px 232px minmax(420px, 1fr) 356px`). Editor min (420) has no enforcement
/// yet — the editor column arrives with #19.