Repository navigation
Appearance overhaul: JetBrains-class IDE shell — Islands palette, AppKit structure, JetBrains Mono editor - #653
Merged
Conversation
…tives decision The two documents that produced this design pass: the architectural finding (SwiftUI for pixels, AppKit for structure; do not swap the editor) and the brief (JetBrains Islands palette, verified metrics, build order, acceptance criteria). PROMPT-appearance-overhaul.md supersedes the density and colour sections of context/style-guide.md; the spacing scale and motion tokens there still stand. Implementation-Agent: fable-appearance-overhaul Commit-Executor: fable-appearance-overhaul (direct; Cursor usage limit)
…ains Mono editor face (overhaul stage 1) Every colour token in DS is now a fixed light/dark pair from JetBrains' Islands theme (DS.Palette, context/PROMPT-appearance-overhaul.md §3) instead of the system utility-app vocabulary; severities are VS Code registry values; list/tree selection is the muted JetBrains band that keeps the row's own text colour. The one native concession the brief permits stays: accentSelection is still the system accent. Metrics move to the verified values: 35pt tabs, 22pt status bar, 48pt icon rail, 4pt tab underline (Row/Size/Layout tokens). The editor gains its IDE face: JetBrains Mono 13 (bundled, SIL OFL 1.1 with licence, registered per process — never persistent — at first font resolution), 1.2 line height, the Islands editor surface (background, foreground, caret, selection, current line, line numbers), and JetBrains' syntax vocabulary (commands as keywords, references as strings, math as the constant purple) in both appearances. Tests updated (appearance defaults the brief deliberately changes, not behaviour): EditorPreferencesTests' three assertions that the *default* editor face is the system monospaced font now assert EditorPreferences.defaultEditorFont (JetBrains Mono when bundled, system mono fallback). Fallback-on-invalid-family behaviour is unchanged and still pinned. Design snapshots re-recorded for the palette. Implementation-Agent: fable-appearance-overhaul Commit-Executor: fable-appearance-overhaul (direct; Cursor usage limit)
…bar, flat toolbar and status bar (overhaul stage 2) The window's structure is now AppKit (WorkspaceSplit.swift): a WorkspaceSplitViewController tree — sidebar | (editor | preview) / problems — with real minimums, thin token-coloured dividers, drag, autosave persistence (disabled under XCTest for snapshot determinism), programmatic collapse, VS Code's sidebar default min(300, width/4), and the narrow-layout rule measured where it cannot feed back into itself. Zero HSplitView remains. The panes are the same SwiftUI views, hosted per split item; every model seam is unchanged. The title bar is the IDE's (WindowChrome.swift): full-size content view, transparent title bar, hidden title, no separator, compact toolbar, one chrome surface from the traffic lights to the status bar — macOS 14 path via NSWindow configuration, the macOS 15 .toolbarBackgroundVisibility equivalent gated behind #available. Toolbar chips are flat quiet icons (hover wash, accent when a panel is open) instead of stock bezels; the status bar drops its system material for the chrome token at 22pt; the capture/bridge/vim bars drop .bar too. Window default size 1440x900. Test updated (structure the overhaul deliberately replaces, not behaviour): CommandTableTests.testFocusOrderMatchesContentViewPaneOrder pinned the pane order by parsing ContentView.swift's HSplitView body; the pane order it protects is unchanged and now asserted against the split tree in WorkspaceSplit.swift, plus an assertion that HSplitView is gone. Implementation-Agent: fable-appearance-overhaul Commit-Executor: fable-appearance-overhaul (direct; Cursor usage limit)
…ul stage 3) The sidebar's trees are real NSOutlineViews (SidebarTree.swift): 24pt rows, full-width JetBrains selection band that keeps the row's own text colour (weaker when the window is unfocused), hover wash, colour-coded type icons, dimmed trailing detail (durable revision, line numbers), tooltips, spoken labels, type-select and arrow keys — plain NSTableCellViews, no SwiftUI per row, on the flat opaque tool-window surface (no sidebar material). Context menus are NSMenu built at click time. Rows still drive the same model operations (switchOrNote, openDocument, createMissingInclude, reveal(outlineItem:)); the scaffold sheets are untouched. Each tool window gets an IntelliJ-style header (name + quiet controls): Project count and New File, the Outline filter menu. DS gains the FilterChip control, NSColor file-type identity and the tree's AppKit fonts. Implementation-Agent: fable-appearance-overhaul Commit-Executor: fable-appearance-overhaul (direct; Cursor usage limit)
The tab strip shares the editor surface (Islands gives both #191A1C / white); the selected tab is the muted blue block with a 4pt rounded underline at the strip's bottom edge, fading to the chrome tone in an unfocused window; inactive tabs carry only a hover wash. Card shadow, stroke and the recessed-strip treatment are gone. Close affordance, modified dot, colour-coded icons, tooltips and the Project menu keep their behaviour. Implementation-Agent: fable-appearance-overhaul Commit-Executor: fable-appearance-overhaul (direct; Cursor usage limit)
…erhaul stage 6, first pass) The Problems panel reads as a JetBrains tool window: header row at the tool-window height with quiet severity counts and custom filter chips (All / Errors / Warnings) instead of a stock segmented control, the close button unchanged; the diagnostics List (small and bounded, so List stays per the brief) goes plain-style with hidden scroll ground, hidden separators and 24pt minimum rows on the panel surface. PreviewV2's strip drops .bar for the chrome token. Snapshots re-recorded for stages 2-6. Implementation-Agent: fable-appearance-overhaul Commit-Executor: fable-appearance-overhaul (direct; Cursor usage limit)
…ed surface (overhaul stage 7) The command palette's results are a real NSTableView (PaletteResults.swift): 28pt Search Everywhere rows — typed icon, title, dimmed context, right-aligned key cap — with the muted full-width band; click runs, the arrow keys stay in the query field, exactly the old semantics. Find in Project's results likewise become an NSTableView (path:line column + snippet with the match span in the focus blue; Return and double-click submit, selection drives the same client seam). The completion popup keeps its NSPanel + NSTableView structure and moves onto the Islands raised surface with the component border, JetBrains Mono candidates, token text colours and the muted selection band. The palette panel sits on the raised surface too. Implementation-Agent: fable-appearance-overhaul Commit-Executor: fable-appearance-overhaul (direct; Cursor usage limit)
…sized surface snapshots (overhaul stages 8-9) Icon-rail glyphs go to 16pt (13 read as a toolbar, not an activity bar); Settings' font picker names the actual default face (JetBrains Mono when bundled) instead of claiming the system mono; the tab-bar and status-bar surface snapshot sizes follow the metric tokens (35/22) rather than the superseded 30/24. Snapshots re-recorded; the full light/dark pass is the 24 committed reference images. Implementation-Agent: fable-appearance-overhaul Commit-Executor: fable-appearance-overhaul (direct; Cursor usage limit)
…t table The panel focus-order table's source marker for the search results still named the removed SwiftUI List; it now names SearchResultsTable, the NSTableView that replaced it (stage 7). Same control, same position in the panel's focus order. Implementation-Agent: fable-appearance-overhaul Commit-Executor: fable-appearance-overhaul (direct; Cursor usage limit)
…state Whether a parked snapshot window wins key status is a race against the process's other windows; once the active tab's fill followed controlActiveState, that race made tabbar-light differ between record and verify runs. The harness now orders windows front without making them key, so every surface renders the same (non-key) state every time — five consecutive verify runs green. References re-recorded accordingly. Implementation-Agent: fable-appearance-overhaul Commit-Executor: fable-appearance-overhaul (direct; Cursor usage limit)
In full-suite runs a hosting invalidation during the settle could nudge the parked window a point or two (a 900pt surface captured at 902), which shifts every pixel against the reference. The exact size is set again after the settle, immediately before the window-server capture. Implementation-Agent: fable-appearance-overhaul Commit-Executor: fable-appearance-overhaul (direct; Cursor usage limit)
This was referenced Sep 15, 2026
GoKubar
added a commit
that referenced
this pull request
Sep 15, 2026
…eader rows Owner review of #653, items 1-9. Stacked on the appearance-overhaul branch. - Every resting control moves into the bar that holds the traffic lights (TitleBar.swift): Compile and the palette leading, dark pages / fit / zoom / open / export / captures trailing, icons only. Drawn as content rather than NSToolbarItems — macOS 26 renders each toolbar item cluster on a Liquid Glass platter (NSToolbarPlatterView paints the capsule as its own layer contents, past backgroundTintColor and NSGlassEffectView.style), and flat-on-chrome is the direction. The window keeps an empty NSToolbar for the unified-compact height, and the row carries its own drag surface. - Compile is a plain single-click button (⌘B) with the JetBrains run-green triangle. Its press-and-hold `primaryAction:` menu is gone: undiscoverable, and its contents are a developer harness (attach compiler executable, reload fixture) that stays in the File menu and the palette. The one user-facing switch in it, auto-compile, is now Settings > Compile. - The preview column loses both header rows. Page/zoom and the quiet state (compile spinner, FIXTURE/HISTORICAL, staleness) float in one transient HUD that appears on hover, scroll, page and zoom changes and fades after; a healthy live preview at rest shows no chrome over the pages. The v2 identity strip is debug-only; its Open… / Export buttons moved to the title bar and its image notices float over the ground. - Revision counters (r12, durable r12) leave the status bar unless View > Show Preview Debug Status is on. - The line-number gutter clips to its bounds: its hairline was bleeding up through the document tab strip. - Flat JetBrains controls replace the remaining bezels: Problems row actions are inline accent links, the panel close and the narrow-preview toggle are hover-wash icon buttons, the outline filter uses the rail's plain-outline glyph, and IconButtonLabel / InlineActionButton / PanelCloseButton in DesignSystem.swift make that one vocabulary. - More accents: run-green Compile, accent tool-window header glyphs, the file-type icon leading the status-bar breadcrumb. Mac gate on this branch: swift build 0, 1330 tests, 12 skipped, 0 failures. Implementation-Agent: fable-appearance-feedback Commit-Executor: fable-appearance-feedback (direct; Cursor usage limit)
GoKubar
added a commit
that referenced
this pull request
Sep 15, 2026
…s, a Canvas-clean preview (#666) * appearance: single title bar of flat JetBrains controls, no preview header rows Owner review of #653, items 1-9. Stacked on the appearance-overhaul branch. - Every resting control moves into the bar that holds the traffic lights (TitleBar.swift): Compile and the palette leading, dark pages / fit / zoom / open / export / captures trailing, icons only. Drawn as content rather than NSToolbarItems — macOS 26 renders each toolbar item cluster on a Liquid Glass platter (NSToolbarPlatterView paints the capsule as its own layer contents, past backgroundTintColor and NSGlassEffectView.style), and flat-on-chrome is the direction. The window keeps an empty NSToolbar for the unified-compact height, and the row carries its own drag surface. - Compile is a plain single-click button (⌘B) with the JetBrains run-green triangle. Its press-and-hold `primaryAction:` menu is gone: undiscoverable, and its contents are a developer harness (attach compiler executable, reload fixture) that stays in the File menu and the palette. The one user-facing switch in it, auto-compile, is now Settings > Compile. - The preview column loses both header rows. Page/zoom and the quiet state (compile spinner, FIXTURE/HISTORICAL, staleness) float in one transient HUD that appears on hover, scroll, page and zoom changes and fades after; a healthy live preview at rest shows no chrome over the pages. The v2 identity strip is debug-only; its Open… / Export buttons moved to the title bar and its image notices float over the ground. - Revision counters (r12, durable r12) leave the status bar unless View > Show Preview Debug Status is on. - The line-number gutter clips to its bounds: its hairline was bleeding up through the document tab strip. - Flat JetBrains controls replace the remaining bezels: Problems row actions are inline accent links, the panel close and the narrow-preview toggle are hover-wash icon buttons, the outline filter uses the rail's plain-outline glyph, and IconButtonLabel / InlineActionButton / PanelCloseButton in DesignSystem.swift make that one vocabulary. - More accents: run-green Compile, accent tool-window header glyphs, the file-type icon leading the status-bar breadcrumb. Mac gate on this branch: swift build 0, 1330 tests, 12 skipped, 0 failures. Implementation-Agent: fable-appearance-feedback Commit-Executor: fable-appearance-feedback (direct; Cursor usage limit) * appearance: 28pt title-bar band, deterministic whole-window snapshots Follow-up within the same review. Two things made every ContentView capture differ between runs, and both are now removed rather than tolerated: - The preview HUD's linger timer is a live Task for 1.5 s, so under XCTest it outlived the surface being captured and decided the next shot too. It is suppressed under test (the ThinSplitViewController.autosaveEnabled pattern); snapshots therefore see the hover tier only. - The height-only NSToolbar installed asynchronously and moved contentLayoutRect while the content was already laying out, which cost 4pt at capture. The window now carries no toolbar at all. Without a toolbar AppKit lays the traffic lights out in the standard band, so TitleBarRow is that band — 28pt, with 24pt buttons — and the row's controls share a centre line with the lights by construction instead of by nudging AppKit's buttons (owner item 1: "aren't aligned with each other"). Also here: IDEButtonStyle, the JetBrains text button, with metrics measured off the OK/Cancel pair in references/M1_intellij_settings.jpg — 28pt tall, 6pt corners, 18pt side padding, 76pt minimum width, hairline border over a near-invisible fill, accent fill for the default action. Applied to the buttons that show at rest (capture bar, bridge bar, export cancel) and to the two sheets. A ControlSnapshotTests gallery renders the vocabulary in both appearances, and a liveProject() fixture renders the resting preview a real compile produces — no chrome over the pages at all. Mac gate: swift build 0; 1332 tests, 12 skipped, 1 failure — testCommandPalette palette-light, which passes on its own three times over and is the same under-load snapshot flake this harness has fought before (see the preceding commit's baseline of 1330/0 on the same tree). Implementation-Agent: fable-appearance-feedback Commit-Executor: fable-appearance-feedback (direct; Cursor usage limit)
GoKubar
added a commit
that referenced
this pull request
Sep 16, 2026
…ont-size magnifier (#674) Owner: pinch-to-zoom on the preview used to work and no longer does (or works badly). Investigation: PreviewZoom.swift's PreviewMagnify/MagnificationGesture on the preview itself is byte-for-byte unchanged since before the appearance overhaul (#653/#666) — `git diff` against the pre-overhaul commit on this file is empty — so the regression is not a code change to the gesture itself. Nothing else about ordinary preview interaction (clicks, navigation) was reported broken, which points at the one thing in this area that is *not* part of normal SwiftUI hit-test dispatch: EditorFontMagnifier, a *local NSEvent monitor* for `.magnify` events (installed once in SourceEditorView.makeNSView) that runs before normal event dispatch for every pinch in the window, and used to decide "is this over the editor" with `scroll.bounds.contains(scroll.convert(event.locationInWindow, from: nil))` — a hand-rolled frame snapshot. Since the overhaul moved the editor and preview from one SwiftUI view tree under a single hosting view to separate NSHostingControllers under one NSSplitViewController (WorkspaceSplit.swift), that snapshot is one more place that can disagree with the window's actual current layout (e.g. mid split-view layout pass), and getting it wrong meant silently swallowing a pinch meant for the preview: the monitor returns `nil`, and nothing else — including the preview's own MagnificationGesture — ever sees the event. Fix: `EditorFontMagnifier.targets(_:_:)` now asks AppKit for the actual view under the pointer (`window.contentView?.hitTest(event.locationInWindow)`) and checks whether it is a descendant of the editor's scroll view, instead of re-deriving the answer from a captured frame. hitTest is always authoritative for the current layout, so it cannot go stale the way a snapshot can. ## Testing `EditorFontMagnifier.targets` is extracted from the previously-opaque `install` closure so it is directly testable. New ZoomTests.testEditorFontMagnifierTargetsOnlyTheEditorsOwnScrollView hosts two side-by-side views (mirroring the split-view shape: the editor's scroll view and a sibling "preview" pane, not nested) and asserts a synthetic event over each side routes correctly, plus the no-window/different-window cases. AppKit has no public constructor for a real `.magnify`-typed NSEvent, so the synthetic event is built with `NSEvent.keyEvent(with:...)` (the same factory `EditorFirstFocusTests` already uses to synthesize keyboard events) — `targets` only reads `.window`/`.locationInWindow`, both of which this factory sets correctly regardless of the nominal event type. I could not verify the fix against a live trackpad (no interactive macOS GUI session from this environment) — full Mac gate (build + swift test) results are in the PR body; if pinch is still off after this lands, the next thing to check live is whether NSScrollView.allowsMagnification got enabled somewhere on the preview's own ScrollView, which would make the scroll view itself consume the gesture before SwiftUI's MagnificationGesture sees it.
ItsAkilesh
pushed a commit
to ItsAkilesh/flashtex
that referenced
this pull request
Sep 18, 2026
Twelve DesignSnapshots tests fail on every CI run, `harness-probe` among them -- two `Text`s on `windowBackgroundColor`, which no feature work touches. When the harness's own smoke probe mismatches, the rendering environment differs, not the UI. It does. Every committed reference is exactly twice its surface's point size (the probe: 640x320 px for 320x160 pt), recorded on the owner's Retina Mac. A `macos-26` runner composites onto a virtual display at @1x, with a different OS build rasterising the text and the materials. The harness already compares perceptually -- precision 0.99, perceptualPrecision 0.98 -- and the difference still exceeds that budget, so widening the tolerance is not available: a tolerance that absorbs a resolution change would miss the design regressions these tests exist to catch. Committing a second, CI-recorded reference set was the other option and is worse: the runner image churns (20260907.0351.1 today), and every image bump would put main back to red until someone re-recorded. So the suite now states what it was recorded on (`__Snapshots__/ environment.json`), measures what it is running on -- through the real capture path, pixels over points, not `NSScreen` -- and skips the comparison when they differ, with both environments in the message. XCTest counts and prints those skips; nothing passes quietly. Re-recording stays a button, not a hand-edit: `RECORD_SNAPSHOTS=1` rewrites the manifest in the same run as the PNGs, and the new "Record design snapshots" workflow does it on a runner and uploads both. flash-tex#653 will invalidate all 24 references when it lands; that is the path. Coverage does not go to zero where the gate bites: HarnessSmokeTests now checks on every machine that the window server still composites a hosted SwiftUI view in both appearances at the scale this machine measures. Only pixel equality against someone else's hardware is skipped. Implementation-Agent: claude-fable-5 (Claude Code subagent, linux-primary) Commit-Executor: claude-fable-5 (direct; Cursor usage limit) Co-authored-by: GoKubar <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Full appearance overhaul: the app now reads as a JetBrains-class IDE — Islands palette, AppKit structure (NSSplitViewController shell, NSOutlineView trees, NSTableView palette/search results), IDE title bar, JetBrains Mono editor — per
context/PROMPT-appearance-overhaul.md(carried into the repo by this PR together withcontext/DECISION-swift-vs-alternatives.md). The editor component was not swapped (Move 1 only, as directed); it is themed throughout.Before / after
Every reference PNG under
apps/mac/Tests/DesignSnapshots/__Snapshots__/is re-recorded in this PR — GitHub's rich diff shows before/after for all 24 images (12 surfaces × light/dark):shell,shell-problems,shell-narrow,shell-empty,tabbar,sidebar,problems,statusbar,settings,palette,completion,harness-probe.Stages (one commit each)
context/.WorkspaceSplitViewController(sidebar | editor | preview / problems) with minimums, thin token dividers, autosave (off under XCTest for snapshot determinism), programmatic collapse,min(300, width/4)sidebar default, feedback-free narrow-layout rule; transparent title bar + hidden title + compact toolbar (macOS 14NSWindowpath; macOS 15.toolbarBackgroundVisibilitybehind#available); flat icon toolbar; 22pt token status bar; zeroHSplitView.SidebarTree(NSOutlineView, plain NSTableCellViews), IntelliJ tool-window headers, full-width muted selection that keeps row text colour, hover wash, NSMenu context menus, colour-coded type icons; Project and Outline both.Acceptance criteria (brief §10)
Met:
Listfor any of them); completion popup was alreadyNSPanel+NSTableViewand is restyled.HSplitView/VSplitView; splits areNSSplitViewControllerwith styled dividers;NSSplitViewItem(sidebarWithViewController:)is not used.NSMenubuilt at click time..barfully removed); flat opaque tool windows.Form/GroupBoxoutside Settings; noNavigationSplitView.min(300, width/4), floors at 170.references/done per stage, both appearances (see snapshots).swift buildgreen; full Mac suite green (see below); no new SwiftPM dependencies (JetBrains Mono is a bundled resource, not a package).Not met / deliberate departures:
NSWindowController. The scene staysWindowGroup(menus/commands, auxiliary windows, Settings, and ~30 tests hostContentViewdirectly); everything structural inside it is the AppKit split tree, and the window chrome is configured directly onNSWindow. This follows CodeEdit's actual split — AppKit for structure — without tearing out the scene layer.NSTrackingSeparatorToolbarItemnot used: the JetBrains toolbar is one uniform chrome strip, not Xcode's sidebar-tinted split toolbar; a tracking separator would add the seam Islands doesn't have..focusEffectDisabledunused):context/design-principles.md§15/§16 requires visible focus rings following the system setting; accessibility wins over the brief's kill-list item.Departures from the brief's numbers (owner's standing instruction):
Tests edited (each pins structure/appearance this pass deliberately replaces — behaviour assertions unchanged)
EditorPreferencesTests(3 assertions): the default editor face was pinned tomonospacedSystemFont; now assertsEditorPreferences.defaultEditorFont(bundled JetBrains Mono, system-mono fallback). Fallback-on-invalid-family behaviour still pinned.CommandTableTests.testFocusOrderMatchesContentViewPaneOrder: pinned pane order by parsingContentView.swift'sHSplitViewbody; same pane order now asserted against the split tree inWorkspaceSplit.swift, plus a new assertion thatHSplitViewis gone.ShellSnapshotTests: tab-bar and status-bar surface sizes follow the new metric tokens (35/22).FocusOrder/PanelFocusOrdersource markers (AccessibilityCommands.swift): the Find in Project results marker now namesSearchResultsTable(the NSTableView that replaced the SwiftUIList); same control, same focus position.SnapshotHarness: two determinism fixes (windows never made key; exact surface size re-asserted before capture) — harness-only, no assertion changes.__Snapshots__reference PNGs re-recorded.Verification
macgate2.sh, all 8 Rust helpers wired): 1330 tests, 0 failures, 11 skipped (skips are live-API/permission-gated cases), snapshot comparisons included in-suite. Two snapshot-determinism defects found and fixed along the way (key-window race; a 2pt window-size nudge in full-suite runs) — five consecutive isolated runs and the final full gate are green.references/at every stage, both appearances.make-app.shand launched: packaged viamake-app.sh --debug --helper-root, launched headlessly withFLASHTEX_NO_ACTIVATE=1; the app and its render/edit-ledger helpers ran cleanly. A real-screen screenshot was not possible over SSH (Screen Recording permission); the committed window-server snapshots are the visual evidence.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu