Skip to content

zgx: the top bar's controls sit on the lights' line, and tab strips glide - #1232

Merged
wingleeio merged 32 commits into
zeronsh:zeron/zgxfrom
gaelcado:gael/zgx-day-tabs
Nov 9, 2026
Merged

wingleeio merged 32 commits into
zeronsh:zeron/zgxfrom
gaelcado:gael/zgx-day-tabs

Conversation

@gaelcado

@gaelcado gaelcado commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What changes

  • On macOS the title bar's controls sit on the traffic lights' line (their middle, 20 down; 20 in full screen), not a point under it.
  • The chosen tab's wash glides to the tab you pick, on both the session tabs and the panel's tabs.
  • A panel tab dragged lifts a little and follows the pointer; its neighbours slide aside, and let go it settles in place. The order is saved once, on drop.
  • A session tab dragged lifts out of the strip and a gap travels where it would land; carried near an end, the strip scrolls under it. Off the strip it can drop into a split: the panes show where it can land.
  • On macOS a press travels 6 points before it's a drag, so a click that wavers stays a click (elsewhere the system's own threshold holds). Back and Forward's arrows are drawn at the bar glyphs' size and stroke.

Before / After

Before After
Shell fixture, 1440×900, dark, platform macOS. Rows: the full window, the session tabs switching from Write the docs to Ship the release, file1.rs dragged past file3.rs in the panel, and Fix the build dragged along the session tabs (before: a copy follows the pointer and the tab stays; after: the tab lifts and the gap travels).

Why

Carries the intent of Gaël's tab polish: the tabs move as one surface, the way Safari's and Arc's do, and the bar lines up with the traffic lights.

For review

Tests

Luau suite, Rust layout/shortcut/reload tests and the Windows (xwin) check on the stack's top: no new failures against zeron/zgx. New: a strip held near its end scrolls; a session tab dropped on a split's landing joins it.

gaelcado added a commit to gaelcado/comet that referenced this pull request Nov 5, 2026
@gaelcado gaelcado changed the title zgx: a dragged tab follows the pointer along its strip, and the chosen tab's wash glides zgx: the top bar's controls sit on the lights' line, and tab strips glide Nov 5, 2026
gaelcado added a commit to gaelcado/comet that referenced this pull request Nov 8, 2026
gaelcado and others added 4 commits November 8, 2026 16:26
The art was laid from the card's right edge and slid the panel's whole
width as the panel opened. It's now laid at the window's width from the
card's right edge, moved right by what the panel takes beside the card,
and the card shows what of it falls inside: the sidebar folding or the
panel opening only moves the card's edges, never the art or its effect.

- The picture covers its box by zgx's own layout (`fit = "cover"`), and
  the window's width is followed as a state: a resize runs no script.
- Changing the picture or the effect no longer dims the art halfway:
  the old layer eases out as the new eases in.

Wing's composition is kept: inside the page's card, never under the top
bar. Tests: wallpaper (the art holds still as the sidebar folds, the
panel opens and the window resizes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each effect is drawn anew, over the whole picture as one layer, on the
picture's own grid (fitted to 2048 a side, as Zeron's proxy of it): the
cells hold to the picture as the window resizes, and every edge is
worked out over the window's own pixel, crisp at 2x.

- Dither: each cell quantized by Bayer's 8 by 8 screen to two shades of
  its own colour, so a sky's mid tones and a shadow's both take the
  weave, and the cell's mean stays its colour.
- ASCII: glyphs of Zeron's ramp (less `%`) over the picture, rising with
  its brightness (its darkness in the light), in the cell's colour
  lifted halfway to its full value, the paper glowing through.
- Halftone: rounded squares on the grid, as the cells of Zeron's mark.
- Scanlines: a CRT's soft rows, the dark between lifting in highlights.

Halftone and scanlines print ink on a paper that follows the scheme, so
each cell is the picture's colour from a step back. The effects stay
GPU layer shaders. Intensity, density and the fade are set in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The wallpaper was torn down whenever the page left a new chat, then
built again, its picture decoded again and faded in over 320 ms each
time a new chat opened: the art showed a third of a second late. A
picture now stays built and decoded while a session shows, hidden, and
shows again from the first frame. A plugin's art still goes (it may
move while away).

Tests: wallpaper (the same layer, hidden while a session shows, then
showing from the first frames).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
@gaelcado
gaelcado force-pushed the gael/zgx-day-tabs branch 2 times, most recently from 5e99e91 to d66883a Compare November 8, 2026 16:07
@gaelcado
gaelcado marked this pull request as ready for review November 8, 2026 20:24
gaelcado and others added 12 commits November 8, 2026 21:31
… 1 to 4 in its effect, and the effects' header reads shorter
zgx's inset title bar centres macOS's buttons in its 40-point strip, 20
down; the bar kept old Zeron's 21, so every control stood a point under
the lights. On macOS the line is now the lights' own middle, 20 with
none reported (full screen).

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…f shows the split's landings

ds/tab_strip: the chosen tab's wash is one pill under the tabs, springing
to the tab chosen and to its width on ds/tabs' spring (now
motion.TAB_SPRING), so a switch glides instead of swapping. The session
tabs take it. A session tab dragged is its chat's, as a sidebar row is:
while it's carried the split's panes show where it can land, and dropped
on a pane's edge it joins there. Its reorder on the strip stays as it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A panel tab dragged lifts a little and follows the pointer along the
strip, held to its line; its neighbours slide aside as its middle passes
theirs, and let go it settles into its place, the order saved once.
Carried off the strip it's the platform's drag, as before. The chosen
wash glides, as the session tabs'. The tab's face, lifted or in the
drag's preview, is the one it has in the strip: its tile and insets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…land

Both strips: one tab only, the lifted one; its place is a gap the
neighbours slide around, closed while it's carried off the strip, and let
go over nothing it flies back into it. The session tabs lift and follow
the pointer as the panel's do, reordering once, on the drop.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…s darkens them

The tabs beside one moving settle critically damped; a top-bar tab opening
grows in and one closing shrinks away as its neighbours close up. Values
in ds/motion.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
A chat alone's tab is replaced on each navigation: too often for an
entrance.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
gaelcado and others added 15 commits November 8, 2026 22:11
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…h the focus ring

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…t's made

Settings' catalog (Plugins, Templates) builds its tabs outside a component:
the tabs' own hover state now has one there too.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…stem's holds

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…strip

Carried along the strip, the split's dividers stay and no landing mounts;
carried off it (the strip says so: `on_away`), the panes show where it can
land, and back over the strip they go again.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…has landed

As the panel's strip does: not while a tab is carried or settling, so the
strip doesn't scroll under a tab landing on its slot; once it has, it does.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
Closed under the pointer (⌘W, a chat deleted), it no longer flies to the
strip's end or commits a place for a tab that's gone.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…t never drifts from its tab

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…it's pressed

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
…eftward drag tested again

The strips' chosen and lifted nodes are #session-tab-chosen and
#panel-tab-lifted; a panel tab's ref and face go with it; the panel's drag
test drags right to left again, as it did before the swap moved to the
leading edge, and the tests say leading edge where they said middle.

Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
The strip's drag preview says it's absolute itself. zgx makes a preview
absolute as the drag begins, but its opacity turning on off the strip
restyled it from its props, so it took a row of the window: the content
ended a tab's height short. The held-tab test now carries one off the strip
and holds it there.
@wingleeio
wingleeio merged commit 08d70b3 into zeronsh:zeron/zgx Nov 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants