Skip to content

zgx: a new chat's wallpaper holds still in its card, its effects redrawn - #1238

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

wingleeio merged 9 commits into
zeronsh:zeron/zgxfrom
gaelcado:gael/zgx-day-effects

Conversation

@gaelcado

@gaelcado gaelcado commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What changes

  • A new chat's picture holds still as the sidebar folds or the panel opens: only the card's edges move, the picture and its effect stay put.
  • Each effect is drawn anew on the picture's own pixels: dither (two shades of each cell's colour, woven), ASCII (Zeron's characters over the picture), halftone (rounded squares, like the mark), scanlines (soft CRT rows).
  • Changing the picture or the effect crossfades without dimming halfway.
  • Coming back to a new chat, the wallpaper is already there instead of fading in late (within 3 frames, where it took about 15).

Before / After

Same window (1440×900, at 2×), the app's bundled sunrise picture, a new chat. The art fades from its top to nothing at its foot (as before), so in the dark its lower half sinks into the card.

Before After
None, dark
None, light
Dither, dark
Dither, light
ASCII, dark
ASCII, light
Halftone, dark
Halftone, light
Scanlines, dark
Scanlines, light
Sidebar folding
Panel opening

Before, the dither's pattern crawls as the sidebar folds, and the picture slides with the panel; after, both hold still.

Why

Zeron's new-chat wallpaper should feel like a still print behind the card, and each effect should read as itself at a step back. Carries the intent of #341.

For review

Tests

Luau suite and the wallpaper tests against zeron/zgx: no new failures; Zeron v2 in step. Windows: cargo xwin check passes, and the Windows VM draws a new chat with dither (screenshot).

@gaelcado
gaelcado force-pushed the gael/zgx-day-effects branch from 63a09f9 to 8be3b12 Compare November 5, 2026 21:59
@gaelcado gaelcado changed the title zgx: a new chat's wallpaper fills the window as Zeron's did, its effects Zeron's own zgx: a new chat's wallpaper holds still in its card, its effects on the picture's own grid Nov 5, 2026
@gaelcado
gaelcado force-pushed the gael/zgx-day-effects branch 2 times, most recently from fe749b1 to 315dd78 Compare November 6, 2026 22:08
@gaelcado gaelcado changed the title zgx: a new chat's wallpaper holds still in its card, its effects on the picture's own grid zgx: a new chat's wallpaper holds still in its card, its effects share one tone Nov 6, 2026
@gaelcado
gaelcado force-pushed the gael/zgx-day-effects branch 6 times, most recently from 4934bf2 to af449dc Compare November 7, 2026 20:03
@gaelcado gaelcado changed the title zgx: a new chat's wallpaper holds still in its card, its effects share one tone zgx: a new chat's wallpaper holds still in its card, its effects redrawn Nov 7, 2026
@gaelcado
gaelcado force-pushed the gael/zgx-day-effects branch 3 times, most recently from 4f9cb1d to 243eca7 Compare November 8, 2026 09:16
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>
wingleeio added a commit that referenced this pull request Nov 9, 2026
…ghts' line, gliding tab strips, a still wallpaper

Kept both sides of a panel tab's drag: #1232's strip.begin and lc's files
and side-chat payload for the composer.

A tab strip's arrows keep the keys on the tab they choose: lc's
"arriving on a chat gives its composer the keys" took them after each
arrow, so the next arrow moved the composer's caret. route.keep_keys()
marks that one arrival; a click, a sidebar row, Back/Forward and ⌘N still
give the composer the keys. The arrows test now starts from a focused tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
@wingleeio
wingleeio merged commit 10c6f51 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