feat(tui): Generate screen — mode tabs (t2i / i2i / inpaint / controlnet) #61

Merged
charles merged 1 commit from tui/generate-mode-tabs-22 into main 2026-04-11 20:42:24 +00:00
Owner

Stacks on #60. Closes charles/loom#22.

  • GenerateMode enum with next/prev/label
  • set_mode() clears init/mask paths when returning to t2i
  • Number keys 14 flip mode (ignored in prompt/string-edit focus)
  • Mode tab strip at the top of the screen with active highlighting

Out of scope

  • Per-mode parameter panels (init image field, denoising strength, ControlNet units, file picker): these come with #23 inpaint canvas and #25 preview pane, plus the glue PR that introduces the file picker. Today the tabs just flip a flag; the parameters row is unchanged across modes
Stacks on #60. Closes charles/loom#22. - `GenerateMode` enum with `next`/`prev`/`label` - `set_mode()` clears init/mask paths when returning to t2i - Number keys `1`–`4` flip mode (ignored in prompt/string-edit focus) - Mode tab strip at the top of the screen with active highlighting ## Out of scope - Per-mode parameter panels (init image field, denoising strength, ControlNet units, file picker): these come with #23 inpaint canvas and #25 preview pane, plus the glue PR that introduces the file picker. Today the tabs just flip a flag; the parameters row is unchanged across modes
Adds a GenerateMode enum with a .next()/.prev()/.label() cycle and a
set_mode() method that clears the init/mask paths when returning to
t2i so stale state doesn't leak across modes. Number keys 1-4 switch
between t2i / i2i / inpaint / controlnet (swallowed when focus is in a
prompt or string edit field so typing isn't hijacked).

Tab strip rendered at the top of the Generate screen with the current
mode highlighted.

Real per-mode parameter panels (init image field, denoising strength,
ControlNet units, file picker for init images) come with the inpaint
canvas (#23) and preview pane (#25) tickets plus the glue PR that
brings in the file picker. Today the tabs just flip a state flag.

Closes charles/loom#22

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
charles changed target branch from tui/generate-lora-21 to main 2026-04-11 20:42:23 +00:00
charles deleted branch tui/generate-mode-tabs-22 2026-04-11 20:42:25 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/loom!61
No description provided.