forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 978e6857d64772912559c8d8a4e6ee7cd309bdccFiltered to crates/app/src/ui/widgets.rsClear filter

2026-08-20

🐛 fix(ui): the darkroom stops promising what it cannot doAhmet Kaan Gümüş · 4137821
🐛 fix(ui): the darkroom stops promising what it cannot do

A verifier drove every control and found three dead ones sharing a cause:
the render entry returns early for the darkroom, so everything mounted
below that line — the enter key, the escape that closes a preview, the
menus — belonged to the old room alone. The stance grew the branches it was
missing and mounts the cards it was missing. Enter adds a source at the
playhead now. Right-clicking a source dot used to set a menu the room never
drew, and since a set menu counts as an overlay, the room went modal with
nothing on screen and swallowed every key but escape; the menu paints, and
a test now asserts no such state can go modal without showing something.

The export card and the preview badge were still the old app's sheets over
the picture — the residue. Export is a plate
over the bench with one bordered chip, and it still exports. The preview
says its piece beside the frame instead of on it.

The hero timecode and the ledger disagreed by four seconds because the band
asked the active session, which is the preview's clock while a preview is
up. Both read the one position the room already computes.
✨ feat(ui): the room becomes the one in the mockAhmet Kaan Gümüş · 622904e
✨ feat(ui): the room becomes the one in the mock

Beside the mock, the shipped room was nowhere near it. The dock was the legacy library verbatim — pill tabs, a
Media/Audio/Text row, a filled Import button, an amber accent no chrome may
carry, and a source name clipped and dimmed past reading. It is now the
dock the mock draws: a count line, a chrome-less filter, ghost sort chips,
two-line rows whose names are mono and legible and ellipsize at the end,
an import section, and the hint that names the four gestures.

The spine groups its commands under heads and stacks each glyph over its
chord. The time band leads with the timecode, carries the transport as
ghosts, reads the cut out loud, and ends in the room's one bordered chip —
which now actually exports: the stance had been suppressing the action and
never mounted the card, so the control was wired to nothing. The bench
grows real thumbnails and waveforms in the source's ink, with the name
plate inside the clip where the mock puts it.

The fonts the language always named are bundled at last: Archivo and Spline
Sans Mono, cut to static weights because this text backend cannot read a
variable axis and would have drawn every weight the same. The darkroom is
the room you get now; OLD_GUI=1 opens the old one.

2026-08-19

✨ feat(app): the timeline draws the dissolve join as an X, ctrl+x binds itAhmet Kaan Gümüş · 270631a
✨ feat(app): the timeline draws the dissolve join as an X, ctrl+x binds it

The keymap's own rebind test claims ctrl+d as a free chord to demo with,
so Dissolve takes ctrl+x instead -- the shape its glyph (widgets.rs,
dissolve_glyph) draws at the join. Wired into the clip context menu
(menus.rs MENU_ITEMS) and the timeline (ui/timeline.rs): an X over the
last transition_out frames of a clip whenever its neighbour still abuts it.
draw fades and their drag handles on the timelineAhmet Kaan Gümüş · 8cb7334
draw fades and their drag handles on the timeline

Translucent wedge overlay per clip end (fade_wedge, widgets.rs,
canvas+PathBuilder idiom) and a small top-corner hit zone beside each
trim strip (FADE_HANDLE_W/H) that drives start_fade_drag/fade_drag_to/
commit_fade. Pixel-delta-to-frames goes through the pure
fade_delta_frames helper in timeline_math.rs.

2026-08-13

✨ feat(ui): the palette is picked in the window, not at the buildAhmet Kaan Gümüş · 4ddba0c
✨ feat(ui): the palette is picked in the window, not at the build

The two colour families were a cargo feature (`--features warm`), which
makes the choice one only whoever compiled the binary could make. Both
are now `Palette` values behind one relaxed load: a token is a call
(`BG_PANEL()`) that reads a field off a 'static table, so a swap
repaints the whole window with no restart and no lookup by name.

The door is a list, not a toggle -- Theme sits in the toolbar's View
group beside Snap, and opens the same picker the resolution and the
HDR rendition already use, so a third palette costs one line in
`PaletteId::ALL` and nothing anywhere else. The stroke is ctrl+h, the
row is in the actions card, and the list now answers the keyboard as
well as the pointer: up, down, enter, escape, on every picker in the
editor rather than only this one.

The pick is kept in ~/.config/edith/theme, beside the keybindings and
under the same XDG rule, so it survives a restart; a file that cannot
be written is said out loud. The contrast guards run against every
palette in the table now instead of the one that used to be compiled,
which is what makes a palette added later land gated.

2026-08-12

🎨 feat(ui): a second palette, named button groups, and one live accentAhmet Kaan Gümüş · 5a36eae
🎨 feat(ui): a second palette, named button groups, and one live accent

Three of the redesign's other answers, kept where they were better than what
this branch had.

The palette is two tables now, `cool` (default) and `warm`, in one file with
one role name list between them: `--features warm` swaps the family and no
call site knows it happened, and a role missing from either is a compile
error rather than a region that quietly kept the old colour. It is a compile
switch because every token is a `const` and a runtime palette is a lookup at
every paint -- the ceiling and the way past it are written where the tables
are. The warm family is held to the same measured floors as the cool one,
and that caught something on the way in: its picked-row surface put the
secondary ink at 4.09:1 where WCAG 1.4.3 wants 4.5, so the surface is darker
here than in the branch it came from.

The toolbar's buttons are three named groups -- Edit, Track, View -- because
a row of twelve unlabelled boxes is a row nobody reads twice, and three
labels are three things to skip.

Import is filled with the accent while the library is empty, which is the
one moment it is genuinely the primary action; Export, which wears the
accent the rest of the time, is dimmed until there is something to export.
So there is still exactly one live accent in the window -- which is the rule
that made Export the accented button in the first place -- and it is on the
thing the user has to press next. An accented button also keeps its accent
under the pointer now: hovering it to the chrome's grey read as the primary
action switching itself off.

And a glyph sits in a box of its own width rather than the width it happens
to draw: the pause bars are 12 px and the play triangle 11, so pressing Play
slid every button in the row one pixel to the left.
✨ feat(ui): library tabs, accent primary action, redesign guardsAhmet Kaan Gümüş · 2171351
✨ feat(ui): library tabs, accent primary action, redesign guards

Media/Audio/Text tabs over the media pool (the giants' split), the Export
button as the one accented control in the window, and three guards: no colour
outside the theme, no settings card drawn from the root, and a reserved rect
for every button whose label changes with its state.
✨ feat(ui): four regions, one oracle, one token tableAhmet Kaan Gümüş · 2ae5c26
✨ feat(ui): four regions, one oracle, one token table

Library left, picture centre with its own transport strip, inspector right,
timeline full width along the bottom with the edit toolbar directly above it
-- the arrangement Movavi and CapCut share. The settings cards are docked in
the inspector, so adjusting a clip no longer hides the clip.

Every button asks the one availability oracle, and so does act(): with no file
open the toolbar used to be dim and dead to the pointer while the very same
actions still fired from the keyboard. Snap, mute and the volume keys answer
with nothing open, in both doors, and everything else dims with the oracle's
own reason in its tooltip.

Clips are painted by kind (video blue, audio green, still teal, cues purple)
on a near-black ground with one cyan accent, and every stateful button keeps a
rect that does not change with its state.
♻️ refactor(ui): extract the UI out of main.rs into ui/ modulesAhmet Kaan Gümüş · d8bffff
♻️ refactor(ui): extract the UI out of main.rs into ui/ modules

The whole window was one 19,916-line file with one Render impl in it, which
is why every colour sweep so far lost to instance patches: there was no seam
to sweep. One module per region, and one theme module every paint reads a
token from -- no 0x literal survives outside it.