forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/app/src/ui/theme.rsClear filter

2026-10-23

🚚 edith moves to git.tahinli.comAhmet Kaan Gümüş · b02f499
🚚 edith moves to git.tahinli.com

The working tree as of 2026-10-23, as one commit on top of the last one
here. It carries the work up to that date plus the test-slimming work:
integration tests merged into one binary per crate, nextest config,
doctest = false, debug line tables only, perf tests behind --ignored,
and faster generators, reverse, undo, subtitle-export, hevc, stabilise
and hear tests.

2026-09-09

🐛 fix(app): a room key still reaches the room when the ring sits in the dockAhmet Kaan Gümüş · 191bda3
🐛 fix(app): a room key still reaches the room when the ring sits in the dock

The dock's shared handler already let unmatched keys bubble; what killed
them was the body swap. `keys_tab`/the other tab takes the focused
`FocusHandle`'s element out of the tree, and gpui dispatches only along
the rendered focus node's ancestors -- an orphaned handle falls back to
the *window* root, which the room's own div is not, so every key died
until the next click (measured: with KEYS open, a second `?` and `space`
reached no listener at all).

Every dock body now mounts the ring it stands in for, and picking the
other tab carries a ring that was in the dock with it. `STROKE_FOCUS`
goes with the ring nobody paints any more.

2026-08-26

🔥 remove(ui): the legacy tree — darkroom is the only roomAhmet Kaan Gümüş · 5dcc6c2
🔥 remove(ui): the legacy tree — darkroom is the only room

Delete the whole legacy UI (timeline.rs, toolbar.rs, inspector.rs, legacy
render body, OLD_GUI gate — the env read is gone, not a switch) and every
helper only it reached: ~6,900 LOC out. Darkroom stance is the only room.

Real gaps the removal flushed out, fixed here:
- typed bitrate in the export card was completely dead — NumberEdit
  digits/backspace/enter/esc now wired in param_card_key
- ActionId::CancelExport was a no-op while the progress card promised the
  chord — now calls cancel_export (ctrl+esc, oracle-enabled during export)
- actions card had no pointer entry — "?" ghost is clickable, scrim
  click closes, inner list swallows
- snap toggle got a button beside zoom-fit in the VIEW group

Dead-by-construction machinery deleted with its tests: key rebinding
(rebinding/rebind_action/capture never set live), keys_search (no search
box exists), cancels_export/format_key/next_audio_kbps, 17 layout.rs
consts/fns, and the rest of the 32 no-—tests dead-code warnings; both
`cargo build -p edith` and `--tests` are warning-free, 245 tests green.
🎨 style(ui): re-add STROKE_FOCUS palette token for the focus-ring taskAhmet Kaan Gümüş · 59c625d
🎨 style(ui): re-add STROKE_FOCUS palette token for the focus-ring task

Reverses 070a260's deletion: the C2 focus-ring feature lands on top of
this in the same worktree next. Values verbatim from that commit's
history; no #[expect(dead_code)] needed since the const is consumed
via the palette!-macro struct-field construction, not a bare unused
item.

2026-08-21

fix: format Darkroom integrationAhmet Kaan Gümüş · 9a27ee6Browse files
✨ feat(darkroom): menu styling, source removal with clips, settings chords, spine geographyAhmet Kaan Gümüş · 3e04aeb
✨ feat(darkroom): menu styling, source removal with clips, settings chords, spine geography

Baseline of the Darkroom parity work before the old-UI removal lanes branch.

2026-08-20

✨ feat(ui): sources get their own colour and the ruler learns to countAhmet Kaan Gümüş · 25a08e3
✨ feat(ui): sources get their own colour and the ruler learns to count

The darkroom's source tints were four greys, so every source carried the
same non-identity and the mock's whole read — each film marking its own
dot, spine and waveform — could not happen. The family gets the real
twelve-hue wheel the language describes, stepped off the reference inks and
held in the contrast band; the other twelve palettes keep their own tints
untouched.

The bench ruler was a filled bar. It has ticks and MM:SS labels now, chosen
so they never crowd, with the playhead's own timecode pinned at its left
edge, and each lane head wears a dot in its first clip's ink.

The dock's import verbs stop lying: they carry real actions with real
chords. Add files takes ctrl+o, which the once-a-project proxy toggle gives
up to a command an editor runs all day. Paste path takes ctrl+l rather than
the mock's ctrl+v, which the timeline's own paste has earned. The tab
letters are gone rather than shown unbound — bare l and i belong to lift
and mark-in.
✨ feat(ui): the darkroom tokens and the cut chords landAhmet Kaan Gümüş · be320c0
✨ feat(ui): the darkroom tokens and the cut chords land

DESIGN.md §12 steps 1 and 3a. theme.rs gains a thirteenth palette family,
Darkroom, plus the fifteen roles the design contract names: the four-level
ink ladder, the dark surface set, the lamp white, the three notice spines
and the safelight pair. The twelve legacy families alias the new roles onto
their nearest existing one so the palette macro still compiles for all of
them.

keymap.rs gains a shift field on Chord and the cut-machinery actions:
, and . walk cuts (shift strides ten), bare [ and ] trim the subject cut,
/ loop-trims. SelectPrev/SelectNext move to shift+[ and shift+] to hand the
bare brackets to trim as DESIGN.md §6 requires; every surface reads those
labels live, so no stale chord text remains. The oracle refuses all five
with "no subject cut" until one exists. Dispatch stays a no-op arm — a
later step wires the behaviour.

2026-08-14

🧹 chore(app): items nothing calls are gone or sit with the testsAhmet Kaan Gümüş · 0ec584d
🧹 chore(app): items nothing calls are gone or sit with the tests

`cargo build` was warning about five items in the app and two in the
vendored `rusty_h264-common`. Each is sited where its callers actually
are rather than silenced:

- `PANEL_H`, `panel_h`, `Volume::label` and `PaletteId::palette` are
  asked for only by the guards, so they are `#[cfg(test)]` now.
- `STROKE_FOCUS` is deleted: the keyboard ring it was drawn for was
  never painted, in any palette, since the token landed -- nothing in
  the editor takes gpui focus. The twelve values are in the history for
  whoever wires a focus ring.
- vendored `bs_tile` is called only by that crate's own tile guards, and
  `qpel_compose` only from `#[cfg(accel)]` blocks; both carry their call
  sites' cfg now, marked as edith patches like the manifest's.

No behaviour change. `cargo test -p edith`: 142 passed.
✨ feat(app): the words get a track of their own, dragged and trimmed like everything elseAhmet Kaan Gümüş · eef3d5d
✨ feat(app): the words get a track of their own, dragged and trimmed like everything else

The subtitle strip under the lanes is gone and the subtitle lanes the engine
model landed are drawn as lanes: the same row, the same header, the same bed.
A palette row is dragged out of the Subtitles list onto one, a placement is
dragged along it or onto another subtitle track, either end is trimmed, and the
box's own × lifts it off -- a caption is not in the clip selection's index
space, so no stroke reaches it and a lane holding one may not be removed.

The row is `lane_row`, unbranched: a subtitle lane holds no `Clip` and every
other lane holds no `SubClip`, so the two lists are never both full and there is
no second kind of row to keep in step. Headers reorder and remove through the
machinery every lane already had.

An `Ok` is never a toast: `move_sub` and `trim_sub` answer a pick-up-put-back
and an edge stopped at a wall with `Ok` and no undo step, so only the refusals
are shown, in the engine's own words after the head. A subtitle lane refuses
media in `lane_refuses`, so the shadow is red on the way down.

Each lane's header carries its eye, on by default and dropped wholesale when a
lane is removed or reordered -- what reads it over the picture is the next
slice; nothing is saved yet either.
✨ feat(engine): subtitles become a third lane kind, placed like everything elseAhmet Kaan Gümüş · ec66e07
✨ feat(engine): subtitles become a third lane kind, placed like everything else

`LaneKind::Subtitle` joins the lane list, holding `SubClip`s -- a
`[in_us, out_us)` window of one of the project's subtitle tracks (the flat
`subtitles` list stays the palette) placed at a timeline frame. A caption is
therefore added, ordered, labelled `S1`, snapshotted, rippled, razored and
undone by the machinery every clip already goes through: an undo step is the
lane list, so subtitles joined the history without one of their own.

It carries no `Clip` at all, and that is what keeps the media paths free of it:
`Project::lane` hands back an empty slice, so trim/set_eq/set_color/set_fit/
set_speed/lift/delete_in refuse it by the bounds check they already had, the
composite and the mix never look at it, and the three doors that could still put
a picture on one -- `from_parts`, `place`, `append_clip` -- say so by name.

Ops: `place_sub` (refuses an overlap rather than overwriting -- words that lost
are simply gone), `move_sub`, `trim_sub`/`trim_sub_room` (clamped like a media
trim; the window follows the edge), `lift_sub`, and `sub_lane_cues`, which maps
a lane to cues clipped to each window and shifted onto the timeline -- the twin
of `export::timeline_cues` for a track that is placed rather than carried.

Ripple, paste-room, split and regroup cut the windows by *proportion*, so none
of that arithmetic needs a frame rate; only a trim and the mapping take one.

Not here, on purpose: persistence (`Parts` has no line for a `SubClip`, so a
save leaves the lanes out -- named at the filter) and any UI.

2026-08-13

chore: rename ponytail: comment marker to corner-cut:Ahmet Kaan Gümüş · 9ba8e0a
chore: rename ponytail: comment marker to corner-cut:

Marker convention renamed after uninstalling the ponytail plugin;
semantics unchanged (deliberate corner-cut, known ceiling + upgrade path).
Token-only rename, 81 comment lines, no code change.
✨ feat(ui): six more families, three of them ones people already live inAhmet Kaan Gümüş · 8a5f18b
✨ feat(ui): six more families, three of them ones people already live in

Ocean, Ice and Orchid are this set's own -- a blue-black ground under azure,
a near-black blue with the widest ink range here under a pale ice accent, and
a dark plum under orchid, which is the warm end of the purples where `violet`
is the cold one.

Nord, Gruvbox dark and Dracula are the open palettes (all MIT, credited on
their modules) mapped onto the thirty-six roles rather than approximated:
surfaces and ink are their own numbers wherever they clear the floors this
editor already holds every family to. What is adapted is named in place --
those three are *text* palettes and this one draws a name and a waveform on
every clip body, so Aurora's green under white is 2.6:1 and the four kinds are
those hues taken down until WCAG 1.4.3 holds. Nord's own picked row carries
the dim ink at 2.9:1, Dracula's comment blue at 2.4:1, and gruvbox's selection
is a grey that says nothing about which row is picked.

Two more forced by the guards rather than by taste: a playhead crosses every
clip body it passes, so Nord's obvious orange (2.3:1 on a video clip) gives way
to nord13 yellow, and gruvbox's playhead is the bright green -- the one hue of
that set clearing 3:1 on all four bodies at once.

The picker holds twelve rows whole at the 640x360 floor (300 px of a 360 px
window) and has room for fourteen, so its scroll stays a safety net. The test
says which: the day a family makes it fail, the card owes the affordance line
the inspector and the cards carry, because a row nobody knows is under the
fold is a row that is not there.
✨ feat(ui): four more palettes, on the same measured floorsAhmet Kaan Gümüş · 3c6b5d9
✨ feat(ui): four more palettes, on the same measured floors

The set grows to six: forest (green ground,
emerald), violet (indigo ground, lavender), rose (neutral ground, one
rose accent and no other hue), amber (graphite ground, gold). Cool and
warm are untouched.

All six are dark on purpose. Colour work is judged against its
surround, and a light ground pushes every clip body and every graded
frame the wrong way, which is why no editor of this kind ships one.

None of them is picked by eye alone. The contrast guards already ran
over `PaletteId::ALL`, and the two tint guards do now as well -- four
swatches tuned on one ground are exactly where a pair lands inside the
margin on another. Every family clears the same floors the first two
did: dim ink at 4.5:1 on its own raised surface and on a picked row,
both inks on every clip body, the playhead 3:1 against the bed and
against a video clip. Where a family could not clear one, the colour
moved rather than the threshold -- forest's audio clip went darker,
amber's picked row went to a bronze, and amber's focus ring went sky
because gold is that family's accent and the keyboard's ring may never
be mistaken for it.
✨ 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): two failures in a row are two messages, in orderAhmet Kaan Gümüş · fc6f9b0
✨ feat(ui): two failures in a row are two messages, in order

The notice was a slot, so the second import to fail in the same frame was
the first one's grave: `self.notice = Some(..)` at seventy call sites, each
of them overwriting whatever had not been drawn yet. The user's own case --
two files on argv, both refused for different reasons -- showed exactly one
of them.

It is a queue now. `Player::notify_user` is the one door every message comes
through, so "queued rather than overwritten" is a property of the field
instead of seventy call sites remembering to be polite, and the policy it
enforces lives in `push_notice` where it can be read at once and tested
without a window: a repeat of what is already at the back is dropped (a held
key that refuses would otherwise fill the queue with one sentence), eight is
the ceiling, and the oldest goes first.

The bar says how many are behind it -- a queue nobody is told about is a
queue whose second message reads as the first one failing to go away -- and
any key or a click answers the front one and brings the next up. The tone is
read off the words the message already opens with and drawn as a stripe down
the leading edge: a full red bar at every refusal is an alarm, and most of
these are answers.

Escape is untouched: cancelling an export is hidden while nothing is
exporting, so answering a notice with escape cannot arm a refusal behind it.
✨ 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.