Commit Graph
2730 Commits
Author SHA1 Message Date
aiongg d78a3aa6b2 theme-store: has_theme and in_library check the suite's themes without copying a definition 2026-11-13 18:36:52 +00:00
aiongg 27608b1da3 RootEnv: the theme is private with its definition; theme_id reads it, set_theme sets it in place 2026-11-13 18:36:52 +00:00
aiongg 6448292d7b SuiteClient: selection_read exposes whether the suite's selection has been read 2026-11-13 18:36:52 +00:00
aiongg d2c8f4d1a0 RootEnv: theme_def is set only with the theme; naming a theme by id clears it 2026-11-13 18:36:52 +00:00
aiongg 49bd1f1851 RootEnv: a library theme the root names resolves from its own definition 2026-11-13 18:36:52 +00:00
aiongg 172e753d87 Multi-line text parts declare that they act on Enter, so the one Submit take in the text step keeps it from the default button; ParamRows' full-width choice is one Line method 2026-11-13 18:32:12 +00:00
aiongg 02e1c47112 Param list additions and the preview click point: Param::multiline, Param::read_only_text, PreviewOutput::clicked through ParamDialog and HostedParamDialog 2026-11-13 18:32:12 +00:00
aiongg df9a3eee36 docs: contract-api and components-index regenerated 2026-11-13 18:28:08 +00:00
aiongg 32d694f8c3 A column group's value and unit reads settle before a measure stands, wherever the row sits
Every read of a column other than a label one in a measuring run counts as early: the reader's own width holds the column, so a content-sized field read directly in a group (or after a presets chevron) re-sweeps at the group's final widths instead of running past the group.

The settle re-sweep is drafted with the Auto id ordinals kept, so the rows of the second sweep get the ids the real run gives them and a settled frame takes the kept measurements.

A component's own leaf label step runs under the field frame: its control reads the value and unit columns in both runs.
2026-11-13 18:25:43 +00:00
aiongg 24416a0c17 Divide Slices: a count shows no pixel unit 2026-11-13 18:25:43 +00:00
aiongg 35b57473e3 Content-sized number fields line up their values and units across a column group: a field's body shares the group's columns other than its labels 2026-11-13 18:25:43 +00:00
aiongg 5a0f8a6cdd docs: contract-api and components-index regenerated 2026-11-13 18:25:40 +00:00
aiongg 871945b5ae Trial: the focus target uses Id::unique (Id::new is deprecated in the egui pin) 2026-11-13 18:21:21 +00:00
aiongg b0f858b567 Injected input: a document withdraw takes effect per step at the next input hook and removes a handed-over step 2026-11-13 18:21:21 +00:00
aiongg 9d0d7ff3e2 Trial: queued input is withdrawn when its target changes 2026-11-13 18:21:21 +00:00
aiongg 12dae06907 Injected input holds presses, keys and modifiers; wheel, release, Caps Lock override, hover rest and document points 2026-11-13 18:21:21 +00:00
aiongg 42f4adb378 docs: contract-api and components-index regenerated 2026-11-13 18:21:18 +00:00
aiongg e0162ae507 Layer stack: a family is modal by its root, so a hosted modal lifted by its drag strips stacks under a later app dialog 2026-11-13 18:15:44 +00:00
aiongg 23b96d6115 DialogHost walk: hosted and app-drawn dialogs show in one walk of the stack, each at its place
walk + next_beside show the host's dialogs in stack order inside their stack place and hand the app each of its own dialogs (BesideStep) to show at its place; run is the walk with no app dialogs. A dialog of the app that leaves the stack (close_beside, or with a hosted parent) closes the framework layers opened inside it: at once when a Context is there, else at the next walk. Trials: app_dialogs_draw_and_take_input_at_their_stack_place, the_walk_shows_each_dialog_once_per_pass, a_framework_popup_in_an_app_dialog_closes_with_it.
2026-11-13 18:15:44 +00:00
aiongg 8de9e2dd3e Layer stack: dialogs stack at their stack place; app-drawn modals are modal layers of the stack
overlay::stack_place gives the layers a dialog host shows their place on its stack, and the modal families that carry one stack in the stack's order in the slots the raise order gave them: a press on a lower dialog or a dialog replaced in place no longer reorders them. contract::overlay::show_beside_modal shows an egui::Modal the app draws itself as a modal layer (order, top modal, egui's modal layer, key blocking, a focus scope that leaves Escape and Enter to the app, parent of the layers opened inside it); close_beside_modal closes those layers when the dialog closes.
2026-11-13 18:15:44 +00:00
aiongg e4f89cf796 Repin the egui fork to craft/popup-above-parent dcd4de1fb (E34 on E33): an egui popup stays directly above the layer it opened from 2026-11-13 18:15:44 +00:00
aiongg a9ed41b60f DialogHost::open_beside and close_beside: app dialogs take their stack place when they open and close 2026-11-13 18:15:44 +00:00
aiongg e98b39a326 DialogHost::sync_beside and automation inspect_stack: app dialogs share the host's stack 2026-11-13 18:15:44 +00:00
aiongg c6a443ac1b docs: contract-api and components-index regenerated 2026-11-13 18:02:26 +00:00
aiongg 1150dd376c Elided text: a path's readable least is measured on the cut it paints, a cut trims white space before its ellipsis, and a row records which units it dropped
TextRun::least_width measures Wrap::ElidePath on the range layout_cut paints at that width (the last name cut, or
the name whole after the ellipsis), through one path_name helper both share. cut_pieces trims white space before the
ellipsis, in the paint and the least alike. The row shrink step records each unit's width and whether it dropped as a
Shrink record in layout memory (layout::ShrinkCap), and a leaf reads the drop from it.
2026-11-13 17:57:00 +00:00
aiongg abddf29103 Row shrink step: a row that does not scroll drops its cut-first units from the end when they do not fit at their least 2026-11-13 17:57:00 +00:00
aiongg ac83ed0ed2 TextRun readable least: an elided run narrows to its first four characters and the ellipsis, measured and painted through one cut 2026-11-13 17:57:00 +00:00
aiongg 633bbba9da Bar: a labelled control and its label are judged as one member, so the rules before it settle with it 2026-11-13 17:57:00 +00:00
aiongg 449f761222 docs: contract-api and components-index regenerated 2026-11-13 17:56:56 +00:00
aiongg c6035506e9 Tool drawer: group headings are section headings (strong, as in the old gallery) 2026-11-13 17:44:44 +00:00
aiongg 6f1263daad ListRow trial: group header weight against section heading 2026-11-13 17:44:44 +00:00
aiongg fb3962ce5d ListRow: a group header reads in the body weight, section_heading for a table's strong section rows; TileGrid: a leading group header sits at the top edge 2026-11-13 17:44:43 +00:00
aiongg 53ff1a9cc7 cargo fmt 2026-11-13 17:44:43 +00:00
aiongg c895a8a45b PresetPanelMenu trial: view checks and Save… gating agree between states and the per-command answers 2026-11-13 17:44:42 +00:00
aiongg bc95df75c0 PresetPanelMenu: checked and enabled per command, for a host that draws the panel menu itself 2026-11-13 17:44:42 +00:00
aiongg ca32ee03be TileGrid: group headers are as high as the grid's other rows (a heading row), not a panel title 2026-11-13 17:44:41 +00:00
aiongg e8329e5d52 FooterBar leading controls: units of the bar's row, narrowing to leave the actions their width 2026-11-13 17:44:41 +00:00
aiongg 25bc6bda1c PresetBrowser footer: stays in the room under a long library, spans the footer under one rule, count on one line; room_height sizes a browser to its presets 2026-11-13 17:44:41 +00:00
aiongg 4e542896f7 PresetEvent: constructors for the struct variants, so hosts can table-test their event mapping 2026-11-13 17:44:40 +00:00
aiongg d76615b3d4 PresetBrowser drop zone: a preset released over the host's zone reports DropAt, on the drag runtime's targets
DropZone names a rect on an egui layer; drag::zone_target registers a target over it with the
layer order, operation and mark of a component's own target, which now goes through the same
function. Trials: the zone drop (and the covered, outside and group cases), and a PresetPicker
inside a Popover keeping the popover open through open and pick.
2026-11-13 17:44:40 +00:00
aiongg 328af6782e craft-timeline: craft-time is the one time model
craft-timeline's Tick, TimeRange, FrameRate, TimeDisplay, SMPTE field conversion and timecode
formatting are craft-time's, re-exported from time.rs as storytold's 5e24ea380 does, so
craft_timeline::time::* paths keep working. The timeline keeps what is about a timeline: TimeView
and VIEW_EXTENT_PAST_END, and TimeFormat as its time display (frame offset, compact feet + frames,
the audio samples and seconds readers) over craft-time's formatters and parsers. FrameRate's
locale-digit menu label is rates::frame_rate_label.

captions and edl use craft-time's field tuples, as storytold's do. The time trials that repeat
craft-time's own tests go; five that test craft-time code it did not test yet are in
crates/time/tests/timeline.rs.
2026-11-13 17:44:40 +00:00
aiongg 83e75d696a SystemState reads the generation before the appearance 2026-11-13 17:44:40 +00:00
aiongg 304030b65b runtime: the root's System choices resolve from the host's SystemReader
InstallSpec::system takes the reader (ui-shell's create starts it with a
repaint wake); the input hook feeds egui's Event::SystemTheme into it, and
system_appearance(ctx) gives the reading and its generation, the one source
RootEnv::resolved uses. egui's system_theme is no longer read. The root token
cache counts its misses for tests (root_token_resolves replaces
root_token_entries).
2026-11-13 17:44:39 +00:00
aiongg cab517ad34 craft-platform: SystemReader::generation rises on each appearance change; report_theme takes the integration's colour scheme
The watcher raises its generation where a portal value arrives and the theme,
contrast or reduced motion changes; layout and icon changes leave it.
SystemReader::unwatched answers only what the host reports; the testing
feature reports contrast and reduced motion in place of an OS source.
2026-11-13 17:44:39 +00:00
aiongg 70325b056e egui fork 8026738c: Event::SystemTheme reports the OS's light or dark preference when the integration first knows it and on each change 2026-11-13 17:44:38 +00:00
aiongg a350d741fc docs: contract-api and components-index regenerated 2026-11-13 17:43:26 +00:00
aiongg 7792b83b7b Merge storytold main 3c59a2aa5 (sync 13 Nov) 2026-11-13 17:19:17 +00:00
aiongg 577055bc34 Merge storytold main 3c59a2aa5 into craft-framework (sync 13 Nov)
202 upstream commits since 6cb00467a. Resolutions:
- craft-window, craft-platform: ours. Upstream's frame policy v2, restore
  store and GNOME light/wait_first are the versions carried on 28 Oct;
  ours moved place() to craft-behavior and kept LayoutWatch and the
  appearance/portal.rs split.
- craft-timeline: ours. craft-time (crates/time) lands as upstream wrote
  it and is not yet used by craft-timeline.
- Old crates/ui modules stay removed. Upstream's frosted backdrops, shape
  gallery, dialog tabs and the iconic flyout top-edge rendering are not
  carried. The #1094 model half is in craft-behavior's dock:
  Group::flyout_offset and Action::MoveFlyoutTop.
- craft-update: #586 Save and Update, the install probe on the check
  thread and quiet per-user MSI self-updates, carried into updater.rs,
  stack_dialogs.rs, install/windows.rs and self_update/helper.rs.
- craft-jpeg: progressive Huffman decoding, carried into huffman.rs,
  parse.rs and scan.rs.
- craft-print: the driver settings dialog's new tests and the bounded
  XML parse's tests, as trials.
- Test-only conflicts: upstream tests from before the base that our side
  cut stay cut; tests new upstream are kept.
2026-11-13 17:11:48 +00:00
aiongg 48d087844d Full-window workspaces on the DialogHost: FullWindowWorkspace and HostedWorkspace
A workspace implements FullWindowWorkspace (its source, events and OK answer) and opens on the app's
DialogHost as a HostedWorkspace. The hosted value owns the source as an Arc, binds the open state to
its own field, queues each pass's events until the app takes them, and finishes with OK's answer or
Cancel. Trials: a hosted workspace fills the window, reports its events, answers OK, cancels on
Escape and reopens; the view commands zoom its view. Story: hosted_workspace on FullWindowDialog.
2026-11-13 17:08:49 +00:00
aiongg 779c45ccd3 craft::egui_fork::REV names the pinned fork rev fe5f026b8 2026-11-13 17:07:14 +00:00