Commit Graph
863 Commits
Author SHA1 Message Date
aiongg 4b6c73a862 Text fields: a multi-line text starts at its box's top, and the box shows whole lines 2026-11-25 21:24:34 +00:00
aiongg f94b37942b FontPicker and ComboBox: compact is a prop, so its setter is derived 2026-11-25 19:04:54 +00:00
Lucas Batista Vargas c79d8d399d font-manager, ui-widgets: compact toolbar sizing for FontPicker and ComboBox (#3043) (#3053) 2026-11-25 16:30:45 +00:00
Lucas Batista Vargas 85d24943f5 ui-widgets: allow card Tile to render paper surface and large icon (#3041) (#3047) 2026-11-25 16:19:38 +00:00
aiongg 5600618795 Merge pull request #3445 from storytold/lightcraft-pr/fw-disclosure-name
Lists: a row's disclosure triangle is named after the row's accessible name
2026-11-25 11:00:11 -05:00
aiongg 1277d4b157 Merge pull request #3213 from storytold/design-port/pr-menus-popups
Menus and popups: keyboard opening and safer activation
2026-11-25 10:54:28 -05:00
Martin Ball 67f5569082 Merge pull request #3139 from storytold/fix/picture-no-checker
ui-widgets: a rendered picture can skip its transparency checkerboard (wordcraft#7317 C3-3)
2026-11-25 15:48:16 +00:00
skylartaylor c7fc2598af Merge origin/next 2026-11-25 16:05:40 +01:00
Martin Ball 75efcf65c6 Merge remote-tracking branch 'origin/next' into fix/picture-no-checker 2026-11-25 14:46:01 +00:00
skylartaylor 9a7c2255a2 Merge remote-tracking branch 'origin/next' into design-port/pr-menus-popups 2026-11-25 15:19:07 +01:00
aiongg c136195d93 Merge remote-tracking branch 'upstream/next' into next-sync-1125 2026-11-25 13:28:36 +00:00
aiongg 29446205c1 SplitButton: SplitOutput::activated tells the action from the arrow's click; the arrow fires no bound command
A root's response reports the clicks on its parts too, so outside an arena a click on the arrow read as a click on
the main part and fired the bound command. The font manager's install buttons read the new signal.
2026-11-25 13:27:10 +00:00
aiongg 9b59227688 Merge craft-libs#3493: design-lint findings and the components index 2026-11-25 12:25:51 +00:00
Martin BallandClaude Opus 5.5 011ee7857a next: design-lint findings and the components index
- ui-panels iconic trial: the two literal 0.5 tolerances are relations (`first` above the
  gripped first icon; the rule `near` the middle of the room).
- ui-shell Column start page: the bottom page margin is `add_space` of the token, not
  `allocate_space`.
- ui-widgets Tile: `PAPER` (a blank page, data) and `Tile::page`'s width and height (a
  proportion in any one unit) are marked and listed as exceptions.
- docs/components-index.md regenerated (Link's `LinkLook::Plain`).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:00:05 +00:00
bflatastic b0d422cf0c Document tabs: TabCloseLook::Glyph, the close button as a glyph (opt-in)
Under TabCloseLook::Glyph a tab's close button is the x alone: a small icon (size.icon.sm) in
text.muted that turns text.normal under the pointer, with no fill, taking clicks in a square of
the close box's width instead of the content's whole height. The default, Button, keeps the icon
button. Story: DocumentTabs close_glyph_document_tabs.
2026-11-25 18:22:12 +07:00
bflatastic 3ccd688c03 Menu bar: MenuTitleLook::Button, titles as bare push buttons (opt-in)
An app may set MenuTitleLook::Button at its root: each title is then a push button high
(size.button) with the button's corners (radius.button) and space.gap.tight beside its text, and
the titles stand space.pad.control apart, as egui's menu bar draws its titles (VectorCraft 0.24).
The default, Row, keeps the menu row look and MenuTitlePad, so no other app changes. Story:
MenuBar menu_bar_button_titles.
2026-11-25 18:22:12 +07:00
bflatastic 5442cfb97f ui-contract, ui-panels dialog, ui-widgets buttons: a dialog frame is padded space.pad.dialog (Pad::Dialog; a roomy dialog keeps space.pad.roomy), and a dialog's footer button (LeastWidth::DialogButton or DialogSideButton) stands size.dialog.button_height high (StyleCx::dialog_button_height; a small one stays a small control high). Every size set gives them a panel's padding and a push button's height, so no app's dialogs change. Trial 2026-11-25 15:21:00 +07:00
bflatastic 03fea7ac47 ui-contract, ui-widgets menu: a menu row stands size.row.menu high (StyleCx::menu_row_height, grown as a control's height is; a small row stays a small control high); a compact row keeps its text line's height. Every size set gives size.row.menu the control's height, so no app's menus change. Trial 2026-11-25 15:21:00 +07:00
bflatastic 69411864af ui-widgets: LinkLook, an env style value for how a link standing alone marks itself beside its colour: Underlined (default) or Plain, the link colour alone, as VectorCraft's start page lists its community links; a link in a sentence stays underlined. Story link_plain 2026-11-25 15:20:32 +07:00
bflatastic 9ff5832607 theme, ui-contract, ui-widgets, ui-shell: a page's rhythm as size.page tokens, opt-in. size.page.gap.{title, lead, actions, section, heading, link} (Gap::PageTitle and its siblings) space a Column start page's title and subtitle, New and Open under them and beside each other, its sections, a section heading over its body and its links; size.page.link is a plain link's least row height; ControlPlace::PageAction stands New and Open at least size.page.button high with at least size.page.button_side beside their labels. The size sets give every gap the value of the gap it stands in for, size.page.button a push button's height and the rest 0, and an app's override of a followed value carries to the page's (FOLLOWS now follows a chain), so no app or story changes until an app sets them (the token dumps gain only the new lines). Story button_as_page_action; trials a_column_page_takes_its_rhythm_from_the_page_sizes, a_page_follows_the_values_it_stands_in_for_unless_the_app_sets_its_own; dumps updated 2026-11-25 15:20:32 +07:00
skylartaylor e8e2fd1c40 List rows: a group row's triangle is named after the row's accessible name 2026-11-25 06:49:57 +01:00
bflatastic f562e58af2 select: SelectLook::Filled shows the closed box filled with surface.control, with no edge until it has focus, at a field's width; Field stays the default 2026-11-25 11:34:03 +07:00
bflatastic cadd08b988 buttons, dock: ActiveLook::Control shows an icon button or segment that is on in surface.control with no edge and the normal text; beside PanelTabLook::Block tabs a collapsed column's open panel icon takes it, as the shown tab does, and its flyouts' groups keep the active look around the column 2026-11-25 11:34:03 +07:00
bflatastic e49a32947a tabs, dock: PanelTabLook::Block shows a panel strip's shown tab as a square surface.control block as tall as the strip, a hovered tab in state.hover; a dock group's strip lies on surface.canvas under it and its panel menu button stands in the strip's middle, as beside pill tabs; Plain stays the default 2026-11-25 11:34:02 +07:00
aiongg 9b818faae7 Merge pull request #3413 from aiongg/dock-gaps-2
Tab order, IME fence and start-up crash fixes from EffectCraft's minimal port
2026-11-24 23:12:20 -05:00
bflatastic 461493afcb ui-widgets, ui-patterns: Tile::page lifts the page on the knob's short shadow and fits its longer side to the largest square the picture holds, so pages of every shape stand at one scale; story new_document_dialog_page_cards for PresetCardLook::Page 2026-11-25 10:52:00 +07:00
bflatastic 205803ee6d theme, ui-widgets, ui-patterns, ui-shell: every Home look opt-in. New Document's preset cards keep the ink page outline by default; PresetCardLook::Page (env style) gives Tile::page on a flat page card. CardText::Page: a strong name on up to two centred lines, the detail right under it, a flat card with the hover fill and an accent edge when selected. surface.page (follows surface.canvas unless pinned; VectorCraft's themes pin production's page colour), size.page.margin and size.page.action; ControlPlace::CallToAction stands a button size.page.action high with a strong label; Stack and the other containers take pad_edges. StartScreen new_label and open_label; the Column page fills surface.page, keeps the page margin beside the column and size.page.margin above and below it, and stands its call to action in ControlPlace::CallToAction; page templates are page cards. Stories button_as_call_to_action, tile_page as a page card; trials; dumps gain the three tokens 2026-11-25 10:52:00 +07:00
bflatastic 8a133a094b theme, ui-widgets, ui-patterns, ui-shell: StartLayout::Column, one centred column at most size.page.column (820) wide a page margin from every edge: title (Display) and subtitle, New and Open centred, the recent files as rows only when there are any, the app's section, the templates as cards that keep their size and wrap, the links under links_title centred without icons and StartLink::primary as a primary pill with its icon; templates_title prop. Tile::page, blank paper on the popup surface's shadow fitted to the picture, now New Document's preset card and a Template's with Template::page. Stories start_screen_column, start_screen_column_without_files, tile_page; trials; New Document's page trial checks the filled page; dumps updated 2026-11-25 10:51:59 +07:00
bflatastic e70ddf25cf ui-widgets list rows: ThumbRows, a root style value; under ThumbRows::Tight a thumbnail row pads its thumbnail by space.gap.tight with no floor of a standard control and the panel padding (at least the row's own height), and a tree level indents by a small icon and space.gap.tight. ThumbRows::Roomy, the default, keeps today's rows and indent, so no other app changes. ListRow story under Tight; trial 2026-11-25 10:24:16 +07:00
bflatastic 27d1e9c469 theme, ui-widgets buttons: size.button, a standard push button's height, read by the text-faced buttons (Button, SplitButton, ToggleButton) through StyleCx::button_height; a small button stays a small control high. Both size sets give it control.md's value, and an app that overrides size.control.md and not size.button has it follow, so no other app's buttons change (the token dumps gain only the size.button line, equal to control.md). Trial; dumps updated 2026-11-25 10:24:16 +07:00
aiongg 62816d0e3d Merge storytold next into dock-gaps-2
next carries dock-gaps (#3383), whose IME commit a0b1c35a8f is the same change as
this branch's 8c2cd95de3, and Skylar's focus and text-field work.

Conflicts:
- runtime/ime.rs, runtime/egui/ime.rs, testing/host_key_trials.rs: next's only
  change to these files is a0b1c35a8f, which this branch already holds and has
  replaced with the fence built on egui's pending_ime_reset (a3a58be575). This
  branch's side is kept. a0b1c35a8f's trial stays in its adapted form
  (an_app_editor_s_own_reset_at_the_press_reaches_it_and_it_composes_again, run
  with the reset in the output and through egui alone).
- runtime/egui/fixture.rs: ResettingEditor and host_resetting_ime_editor keep
  this branch's form (in_output, ask, a press inside the editor's rect). next's
  root focus fact in run_frame (ea6febd719) merged cleanly.
- runtime/focus.rs: State keeps candidates_seen and takes next's
  surrender_after_scopes and surrender_deferred; tab_to_egui stays removed. The
  end hook takes the app's egui widgets first, then runs next's deferred and
  after-scopes surrenders; next's block that surrendered a component widget
  egui's Tab focused goes with the removed egui-Tab path.

No code in next calls host_stop or the removed egui-Tab path.
2026-11-25 01:06:16 +00:00
aiongg 3656e8aaa4 Merge pull request #3212 from storytold/lightcraft-pr/fw-text-fields
Text fields: focus, Escape, typing-run and rename fixes
2026-11-24 20:00:50 -05:00
aiongg 736c9194c1 Merge pull request #3086 from storytold/fix/slider-primary-down-reset-precedence
Add opt-in primary-down editing for sliders
2026-11-24 20:00:37 -05:00
aiongg c93811bcf1 Merge pull request #3383 from aiongg/dock-gaps
Dock and runtime fixes for the CadCraft, EffectCraft and TextureCraft ports
2026-11-24 20:00:09 -05:00
bflatastic 75efd24749 theme, ui-widgets: shape.locator (cell, square), the reference point's squares, each defaulting to the Size preset's size.handle.md and size.handle.sm; ReferencePointLook::Squares lays its squares a cell apart, the picker two cells and a square wide, the same compact or not; VectorCraft's themes pin production's locator, 5 point squares 9 points apart (23 point grid). Trial; dumps updated 2026-11-25 05:53:48 +07:00
aiongg 3408eb09a5 Dock: a group's tab overflow button is a gesture source (SourceKind::Overflow)
TabStripOutput reports the overflow button's rect and access node id while
some tabs do not fit. The dock group passes it on (DockGroupOutput::overflow,
through the memoized tab row so a replay moves it with the row), and the dock
area reports it beside the group's tabs as SourceKind::Overflow, named by the
group's first panel, so a host can give the button an automation id.
2026-11-24 21:47:55 +00:00
skylartaylor c3d02fce68 Merge origin/next 2026-11-24 22:45:39 +01:00
skylartaylor 2a5b120e41 Merge next (357f33254) into lightcraft-pr/merge-3212 2026-11-24 22:44:44 +01:00
aiongg 9f2961402b Merge pull request #3360 from aiongg/next-host-input
Hosted egui apps on next: host quit, dock tab focus, float order, host panel fill, app icon, keymap override warnings
2026-11-24 16:08:36 -05:00
skylartaylor e7d564b62d Merge origin/next 2026-11-24 21:38:34 +01:00
skylartaylor 1c838de17b NumberField and SliderField: select_on_focus
A click on a number field's value put the caret where it landed and kept
the shown text, so with every decimal written ("0.00"), a click and
"0.5" typed made "0.000.5", which applies nothing. A photo editor's
value field selects its whole value when clicked, so typing replaces it.
NumberField::select_on_focus asks for that, as TextField's does: focus by
key or request selects the value at once, a plain click selects it once
released, and a drag keeps the range it makes. SliderField passes it to
its number field.
2026-11-24 21:30:02 +01:00
aiongg b2aab0b8bb Merge next-host-input into dock-gaps 2026-11-24 20:23:54 +00:00
aiongg 146a95ed43 Merge storytold next into next-host-input 2026-11-24 20:18:12 +00:00
aiongg e99e513c8f Merge storytold next into rc-menu-cursor-mnemonics 2026-11-24 19:48:31 +00:00
aiongg 603c4f20c5 Dock: closable panel tabs stay panel tabs
A group with a closable panel made its strip TabKind::Document, so its tabs
overflowed whole instead of shrinking to their first letters. TabKind::Panel
shows a close button on the tabs the host makes closable and closes them on a
middle click (TabKind::closes_by_default: only document tabs close unless the
host says so), and a dock group's strip is always a panel strip.

- A middle press picks no row in a collection that senses MIDDLE_CLICK: there
  the middle click is the row's own action, so closing a panel tab does not
  show it first.
- Tab's least width holds the tail, icon and close button beside the first
  letters, as `place` lays them out, so a shrunk tab keeps its letters.
2026-11-24 18:50:22 +00:00
aiongg 73b31f60ca Merge storytold next into next-host-input 2026-11-24 18:28:22 +00:00
aiongg 2b20e152e3 Merge remote-tracking branch 'upstream/next' into next-lint-picker
# Conflicts:
#	crates/automation/src/client_tests.rs
#	crates/ui-panels/src/docking/dock_column.rs
2026-11-24 18:17:38 +00:00
Dylan M. Taylor d368994b12 Merge pull request #3317 from dylanmtaylor/filmcraft/tab-wheel-remainder
tabs: a strip with wheel_selects keeps the wheel scroll short of a notch for the next pass
2026-11-24 12:52:52 -05:00
skylartaylor 77cbfce411 menu: the first key is withheld only from the focus a pointer-opened menu gave
RowInput::of withheld Enter or Space from any focused row when it was the
first key to drive the menu, so an icon or row an AccessKit Focus had aimed
at, in a menu shown open or opened by the pointer, did not run: the generated
part-activate case of MenuIconRow got no click.

The rule now also asks that the row still holds the focus the menu gave it as
it opened (focus_came_with_open, from the focus origin). A key on a row or
part that a request focused runs it.

Trial: Return on an icon AccessKit focused in a pointer-opened menu picks it.
2026-11-24 17:44:37 +01:00
aiongg 98a30afa0b Merge remote-tracking branch 'upstream/next' into next-lint-picker 2026-11-24 15:59:32 +00:00