Skip to content

feat: add shared presentation for themes and bar layout - #58

Merged
M4n0x merged 2 commits into
mainfrom
feat/presentation-system-55
Oct 17, 2026
Merged

M4n0x merged 2 commits into
mainfrom
feat/presentation-system-55

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Themes could not consistently style existing widgets and popup elements, mode changes could not drive shared presentation, and workspace underlines were clipped at the bar edge. Implements #55, including the requirements consolidated from #56 and #57.

Changes

The four reviewed implementation stages are grouped into two commits: core behavior and regression tests, followed by the delivered theme, documentation, examples and integration tests.

  1. Outline: add an inset four-edge bar border and matching theme-card preview; preserve the bottom-only default.
  2. Modes: map user-owned AeroSpace mode names to semantic aliases, with theme-owned colors and borders. Read initial mode, handle disconnect/reconnect and source changes, and update presentation without reloading configuration, restarting shared sources or closing popups. Aggregate output styles once in configuration order.
  3. Below-bar indicators: use visible-instance anchors and a passive native decoration panel with distinct layout, drawing and input bounds. Reserve state-independent space, preserve clipping and scrolling, account for clearance and popup anchors, and keep the extra strip click-through at the native window level.
  4. Roles and authoring: add explicit widget/block roles and workspace defaults with the documented cascade, null handling and popup isolation. Cover schema/decoders, package allowlists, composition layers, shared CLI edits, Customize, origins and Diagnostics/query. Deliver Tonhalle Line 1.1.0 and an annotated 18-widget example; no theme-specific renderer conditions.

Testing

  • 288 tests passed in the final full suite, including cascade/legacy compatibility, mode lifecycle, source sharing, selective invalidation, native geometry and delivered-theme integration tests.
  • Final production app rebuilt and signed successfully. Its scratch configuration validates as 18 widgets in 5 files.
  • JSON Schema Draft 7 checks and decoder/schema property parity passed, including valid and invalid presentation fixtures.
  • Actual AppKit/SwiftUI bar and popup views rendered offscreen on notched 1512 pt and unnotched 2560 pt display fixtures, with light/dark themes, mode changes, constrained scrolling/overflow, gaps and scaling. The captures use the delivered configuration/theme without extra injected styling. Before captures use the base renderer and original Tonhalle Line 1.0.0.
  • Performance observation: 100 mode paint changes produced 100 decoration invalidations, zero bar-layout view or widget-style invalidations, and stable panel/anchor geometry. A mode-driven visibility change did invalidate layout. Native hosting layout calls and style timings are recorded separately; no speedup is claimed across the different before/after workloads.
  • Eight Claude Opus 5.5 reviews at XHIGH effort, covering stage checkpoints, integrated behavior and final compatibility corrections. All material findings are resolved; final current-source confirmation found no material defects. The requested final rebuild and validation subsequently completed.

Limitations: no visible second bar was launched. Live Spaces/fullscreen transitions, third-party window-manager interactions, native live clicks/hover and VoiceOver were not manually exercised. Offscreen fixtures verify native panel input flags and geometry; they do not establish all live window-server behavior.

Native proof attachments

Download the full evidence bundle: 45 original native captures, a self-contained comparison gallery, final test/build logs, all eight review results, performance measurements and the delivered scratch configuration.

Before: base 3e621ba renderer and original Tonhalle Line 1.0.0. After: delivered Tonhalle Line 1.1.0, with no extra injected styling. After bar images include a transparent 2 pt decoration strip beneath the unchanged 38 pt visible background. The user's tailing mode maps to the command alias.

1512 pt notched display, dark

Before:

Before: 1512 pt dark bar

After, main mode — light time role, separate date and underline below the bar:

After: 1512 pt dark bar in main mode

After, mapped command mode — theme-owned brass outline:

After: 1512 pt dark bar in command mode

1512 pt notched display, light: before, main mode and command mode

Before: 1512 pt light bar

After: 1512 pt light bar in main mode

After: 1512 pt light bar in command mode

2560 pt unnotched display, dark: before, main mode and command mode

Before: 2560 pt dark bar

After: 2560 pt dark bar in main mode

After: 2560 pt dark bar in command mode

Music popup, same widget-owned layout

Before After, explicit roles
Before: music popup After: music popup
System popup before/after, light agenda and Built-in fallback
System before System after
Before: system popup After: system popup
Light agenda Same music layout under Built-in
After: light agenda popup Built-in fallback: music popup

Merging

Use a merge commit or rebase merge to retain the two logical commits. App release versions and CHANGELOG.md are unchanged.

Implementation: Codex (GPT-6 Astra) in T3 Code. Reviews: Claude Opus 5.5 (XHIGH) via T3 Code. PR preparation: Codex (GPT-6.1 Sol) in T3 Code.

Steve Reis added 2 commits October 17, 2026 14:20
Implement the four presentation stages from issue #55:
- draw an optional inset outline while retaining bottom borders by default;
- resolve mapped AeroSpace modes without reloading configuration or sources;
- draw workspace underlines below the bar with passive native decorations;
- apply explicit roles and workspace defaults through the shared cascade.

Cover decoding, schema, packages, CLI edits, Customize and diagnostics.
Keep popup roles isolated, instance anchors local and source sharing intact.
Add lifecycle, cascade, compatibility and native geometry regression tests.
Deliver Tonhalle Line 1.1.0 with explicit role styles, workspace defaults
and a theme-owned brass outline for the user's command mode alias.
Document opt-in migration, configuration precedence and authoring controls.

Add an 18-widget example and offscreen native integration tests that render
the delivered theme on notched and unnotched displays and verify source,
mode and popup lifecycles.
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner October 17, 2026 12:21
@M4n0x
M4n0x merged commit 68c7604 into main Oct 17, 2026
4 checks passed
@M4n0x
M4n0x deleted the feat/presentation-system-55 branch October 17, 2026 12:27
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant