forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/app/src/ui/toolbar.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-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.
🐛 fix(app): loop honors the i/o range, priority range > trim > timelineAhmet Kaan Gümüş · 0d4b12a
🐛 fix(app): loop honors the i/o range, priority range > trim > timeline

Player::pump and the Ended crossing both restarted only inside
loop_trim or the whole timeline, ignoring a marked i/o range
entirely. active_loop_window() now picks range > loop_trim > whole
timeline, gated so a bare range with neither loop_on nor loop_trim
never starts looping un-looped playback -- it is an export mark
first. Loop button tooltip names which window is in force.

2026-08-21

fix: format Darkroom integrationAhmet Kaan Gümüş · 9a27ee6Browse files

2026-08-20

🐛 fix(ui): s cuts, the loop arms cold, and no command hidesAhmet Kaan Gümüş · b999ecf
🐛 fix(ui): s cuts, the loop arms cold, and no command hides

Round two of the verifier's drive. Bare s added a subtitle lane while the
design contract reserves it for the split, so an editor pressing it twenty
times got twenty stray lanes and no cuts; s splits now and the caption lane
answers to c. Arming loop-trim forced playback on, so the editor's own next
space toggled it straight back off and the room looked frozen — arming
leaves the transport exactly as it found it, which is what the disarm side
always did.

Three commands lived only on keys: the stride-ten walk, the selection walk,
and the overlay that would have taught them. The spine now shows both
strokes beside the walk glyphs, carries the selection pair, and the keys
overlay opens again — the surface is the shortcut sheet, which is the whole
point of the rule.

The two-up plates were painted over the bottom of the picture. The screen
lays them out as a sibling now, so the picture shrinks to make room rather
than being covered. The dock tab left its process-global static for the
same config the palette uses, so the room reopens on the tab it closed on.

2026-08-19

✨ feat(app): redo has a toolbar button beside undoAhmet Kaan Gümüş · 6dae2b4
✨ feat(app): redo has a toolbar button beside undo

The toolbar only exposed undo as a click target, leaving redo
(ctrl+y) reachable by keyboard alone. Add a sibling button and
mention redo in the timeline hint line.
✨ feat(app): the playhead can loop, on the timeline and in a previewAhmet Kaan Gümüş · 935d48b
✨ feat(app): the playhead can loop, on the timeline and in a preview

A Loop toggle (transport bar button, bare r) restarts playback from
zero on the end crossing instead of halting — the same restart door
play-at-end already used, so loop-off semantics are untouched. One
flag serves both sessions: pump loops whichever is active. The wrap
reopens the decoder; a one-frame seam is the accepted cost.
✨ feat(app): fullscreen fills the screen with the player, not the appAhmet Kaan Gümüş · 24cc062
✨ feat(app): fullscreen fills the screen with the player, not the app

Fullscreen used to hand the OS window to the monitor with all of the
chrome still on it -- a bigger editor, not a bigger picture. It now
draws the picture region alone, the way every consumer player does,
and asks the platform's own toggle to agree with it.

Escape leaves it, and is answered before any menu or preview under it
gets a look at the stroke: one stroke, one effect, so an escape with a
preview open behind fullscreen leaves fullscreen first and stops the
preview on the second. F11 toggles it either way.

Driven live in the nested-sway harness on a 4K H.264 mp4: the click on
Fullscreen left only the letterboxed picture on screen (no topbar,
library, inspector or timeline pixels) with sway fullscreen_mode=1;
Escape brought the whole layout back at fullscreen_mode=0; F11 in and
Escape out repeated it. 174/174 app tests green.
🐛 fix(app): the transport clock reads the preview, not the timeline, while one is upAhmet Kaan Gümüş · c60633d
🐛 fix(app): the transport clock reads the preview, not the timeline, while one is up

The toolbar's timecode/duration readout took position and duration
from the timeline's own playhead unconditionally, so opening a
library preview kept showing the timeline's time underneath it. It
now reads active_session()/active_fps() like the rest of the
transport does, so the clock tracks whichever session is actually
playing; Escape still hands it back to the timeline the moment the
preview closes. The ruler's own clock (timeline.rs) and the timeline
context-menu timecodes are untouched -- they are timeline-bed reads
and must keep following self.session regardless of a preview.
✨ feat(app): the current frame saves as a PNG with a keystrokeAhmet Kaan Gümüş · 7a82c20
✨ feat(app): the current frame saves as a PNG with a keystroke

Bare w (free by hand-scan of the default keymap), or the toolbar's own
"Shot" button, write whatever is on screen -- timeline or a preview --
to ~/Pictures/edith as stem-timecode.png, never clobbering an earlier
shot of the same second. Blocked during export like every other
one-shot action (oracle.rs's allow-list already covers this).
✨ feat(app): the player goes fullscreen from the toolbar or F11Ahmet Kaan Gümüş · 1ac24b8
✨ feat(app): the player goes fullscreen from the toolbar or F11

gpui Window::toggle_fullscreen wired as ActionId::Fullscreen (View category,
always enabled — window-level, touches no edit list). Player::act grows a
window parameter to reach the API; topbar gets a state-reflecting
Fullscreen / Exit fullscreen button beside Save/Export.

2026-08-14

✨ feat(ui): panels resize by dragging their dividersAhmet Kaan Gümüş · a39a88f
✨ feat(ui): panels resize by dragging their dividers

The library, the inspector and the timeline were laid out at a fixed share
of the window; the three seams between them are handles now. A press on a
strip is tracked from the root like every other drag here (a 6 px strip is
not where the pointer stays), the size lands in the model and every region
reads it back through one door -- so a dragged width survives the release
and cannot disagree with what is drawn.

Each panel stops at its own floor and at a third of the window (most of it,
for the timeline), so neither a panel nor its neighbour can be dragged away
and lost. The bed's pixel-to-time answer is measured off the ruler's own
prepaint box, so a click still names the frame it points at at every size.
🧹 chore(app): the subtitles toggle says what is placed, not what is pickedAhmet Kaan Gümüş · d6c0e92
🧹 chore(app): the subtitles toggle says what is placed, not what is picked

Under lanes the picture reads the subtitle lanes, so the toggle's notice
naming the palette row named a track the stroke never touches: it now counts
the captions actually placed, and so does the toolbar's own label ('No subs'
for a palette full of tracks nobody dragged anywhere).

- actions.rs: toggle_subtitles words itself off placed captions; subtitle_track
  (the last pick-shows-it reader) gone, placed_captions in its place.
- toolbar.rs: the subs control reads placed captions.
- subs.rs/export.rs: docs that still said a pick draws.
✨ feat(app): + S makes a subtitle track, and the file door keeps its own nameAhmet Kaan Gümüş · 6830c39
✨ feat(app): + S makes a subtitle track, and the file door keeps its own name

"if I press button +S it should create subtitle track section": it opened a
file chooser instead, which is the one thing a track button never does. The
button and its "s" now add a `LaneKind::Subtitle` lane exactly as + V and + A
add theirs, ctrl+t takes the last one back, and the chooser survives as
`ImportSubtitles` (ctrl+i) behind the Text tab's own "Add subtitles from a
file…" -- the panel where the tracks it reads are listed.

Every notice follows the split: an import lands rows "in the palette", a lane
says "drag a subtitle from the panel onto it", and a remove with no subtitle
lane says so instead of "open a file first" over an open file.

The export card's Subtitles row was framed around palette picks: with an empty
pick list it dropped the engine's sentence whole, so a lane the export carries
nothing of said nothing at all. The sentence is kept whatever the picks are,
and a row the sentence already speaks for gets no clause of its own.

2026-08-13

✨ feat(timeline): the wheel zooms and scrolls where the clips areAhmet Kaan Gümüş · a02176e
✨ feat(timeline): the wheel zooms and scrolls where the clips are

Ctrl+wheel anywhere over the timeline -- a lane's bed, a clip's trim
strip, the ruler -- magnifies about the pointer, and a bare wheel slides
the view along it: the mapping every editor shares, on the surface a hand
is already aiming at. Only the 24 px ruler strip answered the wheel
before, and only with ctrl.

Three things had to be true for it to work at all:

- A bare notch is a tenth of what is on the bed (SCROLL_NOTCH_SHARE), so
  one gesture moves the same share of a five second import and of a film;
  View::scrolled clamps it against the content's own length.
- The follow no longer fires on a playhead nobody moved: a view yanked
  back every frame is a hand's own scroll undone before it is seen.
- gpui stops its hit test at an occluder, so the trim strips at a clip's
  ends took the wheel off the bed with them -- a dead strip exactly where
  a hand aims to see a cut closer. They answer with the same call now, and
  the lane column keeps the track names as its own scroll surface.

The keys and the buttons zoom exactly as they did.
✨ 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): the floor, the notices and the silent refusalsAhmet Kaan Gümüş · 2c8e3aa
✨ feat(ui): the floor, the notices and the silent refusals

The transient bars hang off the bottom of the picture instead of taking a row
of the column -- a notice arriving used to push the transport, the toolbar and
the timeline down by its own height, which is every control below it moving
with state.

At 640x360 the timeline takes at most its share of the window and its lanes
scroll inside it, the library tabs wrap rather than hanging off the panel, and
the level's bar stands down while its button and its keys stay.

A class refusal (esc with nothing exporting) is silent; a state refusal speaks.
✨ 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.