462 Commits
Author SHA1 Message Date
BFlat c41c9433e9 Merge pull request #2969 from dotCooCoo/feat/color-row-alpha
Form dialogs: a color row can carry opacity (ParamKind::color_with_alpha)
2026-11-26 10:25:56 +07:00
BFlat 16c41e2f7a Merge pull request #2959 from dotCooCoo/feat/about-licenses-tab
About: a Licenses tab shows the app's third-party license texts
2026-11-26 10:25:20 +07:00
BFlat d9513bc418 Merge pull request #2957 from dotCooCoo/feat/range-param-step
Form dialogs: a Range row can take a step (Param::step) for its slider and field
2026-11-26 10:25:07 +07:00
BFlat 2e3ef32b8b Merge pull request #3602 from dotCooCoo/fix/pdf-preset-label-flattener
ui-patterns: the PDF export preset row reads modified while custom flattener options are on
2026-11-26 10:01:56 +07:00
BFlat 0c03526c50 Merge pull request #3567 from dotCooCoo/fix/floating-window-least-size
Dock: a floating window placed or restored outside its panels' limits shows within them
2026-11-26 10:00:51 +07:00
BFlat e4fd69e763 Merge pull request #3553 from dotCooCoo/fix/preview-pane-narrow-room
ui-contract, ui-patterns: a preview in a narrow panel stays inside it
2026-11-26 10:00:00 +07:00
BFlat 6e4b0281ce Merge pull request #3539 from dotCooCoo/fix/find-dialog-escape
ui-contract: Escape in a modeless dialog's field closes the dialog
2026-11-26 09:58:45 +07:00
BFlat eb9d439cd5 Merge pull request #3532 from dotCooCoo/fix/list-manager-enter
ui-contract, ui-patterns: Enter in a list manager's name box runs its enabled first action
2026-11-26 09:58:18 +07:00
BFlat e3ceeb4a7f Merge pull request #3521 from dotCooCoo/fix/slider-field-tab-order
ui-widgets: Tab visits an inline slider field's slider before its number field
2026-11-26 09:57:36 +07:00
BFlat acd3892871 Merge pull request #3423 from dotCooCoo/fix/per-inch-typed-suffix
behavior: a typed /in after a count reads as the per-inch unit (40/in)
2026-11-26 09:52:40 +07:00
BFlat 2ccbe14914 Merge pull request #3455 from dotCooCoo/fix/save-for-web-panes-fill-height
ui-patterns: Save for Web's preview panes fill the height beside the settings
2026-11-26 09:52:00 +07:00
BFlat 96d8c7f233 Merge pull request #3420 from dotCooCoo/feat/per-inch-unit
ui-contract: UnitKind::PerInch shows a count per inch after its number (10/in)
2026-11-26 09:49:54 +07:00
dotCooCoo 616429fea0 ui-patterns: the PDF export preset row reads modified while custom flattener options are on
A PDF preset names a flattener preset and never holds custom flattener
options, so while the flattener select shows [Custom] the settings no
longer match the chosen preset. The preset row now reads
"<name> (modified)" while `custom_flattener` is on, as it does for any
changed setting, and shows the preset's name again once it is off.
2026-11-25 16:34:09 -08:00
David MannandClaude Opus 5.5 f74fe090fc Preferences: an opt-in classic layout with a framed page list, group boxes and Prev/Next
PreferencesLayout::Classic draws the paged body as a desktop preferences dialog does:
the page list in a frame as tall as the page (SectionList::framed) with room before the
page, no heading over the page, and each titled group a GroupBox. The window puts OK,
Cancel, Prev and Next in a column at the end edge (ButtonPlace::Side) and opens at
1030 x 660; Prev and Next step through the listed pages and wrap. Paged and Cards are
unchanged. PreferencesPageOutput::pages lists the page ids the search keeps.

For storytold/photocraft#17014.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:46:32 +01:00
dotCooCoo 6b82d7c4b0 Dock: a floating window placed or restored outside its panels' limits shows within them
FloatingGroup::mount passed the caller's rect to Overlay::placed unchanged
for a window the rect sizes, and a placed rect takes precedence over the
layer's size limits. A window placed by a command or restored from a saved
layout narrower than its panels' least width was drawn at that width. The
window now shows at the rect's place with its size clamped to the frame
limits (the panels' limits with the chrome on top), as an OS window's
placed rect already is. A window whose column's groups are all minimized
takes the clamped width too, and a window drag carries the clamped size, so
a float of the drag does not restore the narrower size. A window already
within its limits keeps its rect.
2026-11-25 11:37:15 -08:00
aiongg 444ba59795 A layer in a popup window remembers what it opened with
A layer opened in a palette window shows in a popup window of its own. Its host asked in the opener's viewport whether the layer appears in this pass, and only the popup's pass recorded that it had, so the layer appeared in every pass and forgot everything in between. The arrow keys never left a menu's first row, a menu hung at the pointer jumped while the pointer was over it, and a scrolled flyout went back to its top. The host now records the appearance in the opener's viewport too (`overlay::note_appeared`, split out of `begin_layer`), so both viewports agree.

With its memory kept, such a layer takes the two rules an in-window layer has: a right-click on its context opener hangs it at the new pointer (`recall_shown`, shared by both hosts), and the press that opened it from another window does not close it when the opener runs a second pass of the opening frame.

The window kit's `send` gives events to one child window, such as a popup's.
2026-11-25 19:11:46 +00:00
dotCooCoo c8f2118664 ui-contract, ui-patterns: a preview in a narrow panel stays inside it
A panel at its narrowest width offers its body less room than
size.plot.width (240 pt, 300 pt at comfortable density). The preview
pane still drew that wide and ran past the panel's edge: picture_width
clamped the offered room up to its least width, and the pane's style
also set its least width as min_size.

picture_width now takes an offered room below its least width, down to
size.plot.height (or the least width when that is smaller). Without a
room, or at its least, it is still the least width, so a dialog sized
from its content keeps the preview as wide as before. The preview pane,
the Navigator preview, the histogram plot and the reading view drop
the plot width from their min_size and keep its height.
2026-11-25 10:21:56 -08:00
aiongg 6801f1f9b5 A window's records survive the frame that opens it: closed viewports' records go as a frame begins
Every pass's end hook dropped the per-viewport records of viewports its input did not list. That list dates from the
frame's start, so the root's end hook dropped the records of a window the frame had opened. A palette that opened
hidden under an open menu lost the note that it was hidden, and stayed hidden once the menu was gone: Float in a docked
tab's menu left no window to see when the opening frame ran a second pass. The root's begin hook now drops the records
of closed viewports in a frame's first pass, where the list names every window opened before.
2026-11-25 18:16:05 +00:00
dotCooCoo c667c5ece4 ui-contract: Escape in a modeless dialog's field closes the dialog
With RootEnv::escape_leaves_fields on, a text field took Escape and gave
up the focus unless it sat in a modal dialog. In a modeless dialog whose
Escape closes it (one with a footer, such as Find and Replace), the
first Escape left nothing focused, and a modeless layer does not take an
Escape while the focus is outside it, so no later Escape closed the
dialog and the focus never went back to the opener.

The field now keeps the focus in any dialog on top whose Escape closes
it, modal or modeless. An Escape the field does not take for its typing
closes the dialog, which returns the focus to its opener. In a modeless
dialog the first Escape still reverts a draft.
2026-11-25 08:36:51 -08:00
aiongg d0254a0996 Merge pull request #3533 from aiongg/ports-combined
Ports: a click keeps the canvas focused, Escape from floats, rail drags dock
2026-11-25 11:15:43 -05:00
aiongg aa401985dd Merge commit 'ea2211729e' into ports-combined 2026-11-25 15:43:03 +00:00
dotCooCoo ca8556c9c4 ui-contract, ui-patterns: Enter in a list manager's name box runs its enabled first action
With no row picked, Enter in a list manager's name box did nothing, while a click on the
first action ran it. The name box drives the list, so the key router sent Enter to the list
as an activation, and a list with no lead row took it without acting on it. The list manager
also turned the dialog's Enter rule off, so the default button could not take the key.

- ui-contract: a collection records whether it has a lead row, and a text field that drives a
  collection without one keeps Enter as its submit. A driven target that records nothing (a
  menu) still takes Enter.
- ui-patterns: `ListManager` turns `close_on_enter` on, so Enter runs the first action while it
  is enabled, as its doc says. Enter on a lead row the name box no longer names (a name typed
  after picking a row) runs the first action on the typed name instead of the row's.
2026-11-25 07:28:58 -08:00
aiongg fd7f86446f A floating window that takes over a held press opens its OS window once the press ends
The OS gives an OS window no press that went down in another window, so DockArea::continue_move had no effect
on a window the dock opens as one. The window shows in the app window while the press moves it: it follows the
pointer, marks where it would land and docks on release, as a tab drag does.
2026-11-25 15:13:06 +00:00
aiongg f15b0e87d2 An Escape nothing in a floated dock window takes is the dock window's Cancel
A dock panel's OS window gets its keys alone, so an Escape pressed there with
nothing focused became that window's Cancel, which no app code reads: a command
started from a floated palette could not be cancelled. The end hook hands a Cancel
left in such a window (`WindowSpec::hands_on_cancel`) to the window it was opened
from, which reads it as its own in its next pass. A popup or a modal open in the
floated window keeps the Escape, and a modal that opened meanwhile drops it.
2026-11-25 14:57:40 +00:00
dotCooCoo ca09728e73 ui-widgets: Tab visits an inline slider field's slider before its number field
An inline SliderField places the slider at the line's start and the
number field at its end, but it showed the field first, so Tab reached
the number field before the slider to its left, in both directions.
SliderField now shows its parts in the order they are read: the slider
and then the field when inline, the field and then the slider when
stacked. The layout and the value the two parts share do not change.

The group's tooltip, and the reason it is disabled, moves with the
first stop, so a disabled inline slider field keeps one Tab stop, on
its slider.

The primary-down test rig counts one Tab press fewer to reach a row's
slider, and the range-alert dialog test finds a row's number field by
its role, since the slider before it carries the same name.
2026-11-25 06:53:43 -08:00
skylartaylor b003bd172a Merge origin/next into design-port/pr-docking-rails
One conflict, in docs/ui-docking.md: next added bullets for tab presses keeping
key focus and for floating windows stacking with app windows next to our
split-handle bullet. Kept our split-handle sentence (a pointer press or drag on
a handle leaves key focus) and next's two new bullets after it.

The Rust files merged cleanly. next still has dividers that take focus on a
press, the flyout room limited to the space below its top, and no RailTool
icon, so none of this branch's changes is covered by next.
2026-11-25 15:21:14 +01:00
dotCooCoo 120d962bd0 save for web: the preview panes fill the height beside the settings
The preview column, the pane grid, each pane row and each pane were
sized to their content, so a pane stayed at the plot's least height
(about 144 pt) beside a settings column three to six times taller, and
the dialog showed empty space below the panes. The preview column now
fills the row it shares with the settings, its rows of panes share that
height below the zoom row, and each pane takes its row's height above
its two caption lines. The dialog keeps its size.

Test: it::form_dialogs::save_for_web::the_preview_panes_take_the_height_beside_the_settings
2026-11-25 00:29:41 -08:00
bflatastic 5d74792c0a dock: DockConfig::flush_docks stands docks flush against the node beside them, with no gap (DockSizes::dock_gap, FrameRules::dock_gap), and frames their columns collapsed to icons in line.border as expanded columns are, so one rule parts a dock from the canvas; off by default, where the space.gap.tight gap stays 2026-11-25 11:34:03 +07:00
bflatastic 9916d16585 dock: DockConfig::column_cards takes ColumnCards: None (the default), All (every docked column a card, as the switch on was) or Stepped, which shows only the stepped columns such as a docked tool rail as cards and keeps the panel columns flush; DockSizes::card_place and card_inset read the column 2026-11-25 11:34:03 +07:00
bflatastic a7b48fb036 theme, dock: size.bar.column, the height of a dock column's bar (size.control.sm in both built-in sets, so the bar keeps its height unless an app sets it); a column's bar, expanded or collapsed to icons, lies on the surface its dock's tab strips do: surface.canvas beside PanelTabLook::Block tabs, the window's background otherwise 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 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
dotCooCoo 74d7ea395c behavior: a typed /in after a count reads as the per-inch unit (40/in)
The number reader accepted unit spellings made of letters and unit
symbols only, so the "/in" spelling of UnitKind::PerInch was never
registered. In a field that draws its unit apart from the number, a
typed "40/in" was then read as 40 divided by a quantity with no number,
and the field refused it.

A unit spelling may now start with one "/" followed by letters or unit
symbols. After a number, the reader takes such a spelling when the
letters after the "/" start it, so "40/in", "40 /in" and "40/IN" read
as 40 per inch. Any other "/" still divides: "80/2" is 40, and a field
without a "/in" spelling reads "/in" as before. Only UnitKind::PerInch
has a spelling with a "/", so no other field changes.
2026-11-24 18:30:23 -08:00
dotCooCoo dd5b04eaa3 ui-contract: UnitKind::PerInch shows a count per inch after its number (10/in)
A number field had no unit kind for a count per inch of length, such as the
points a distortion adds along each inch of a path, so a row that counts
per inch showed no unit. UnitKind::PerInch writes the number followed by
"/in" ("Per Inch" in a list of units), shows up to two decimals and steps
by 1. It is a count, not a length: per_inch answers None for it, so it does
not convert to or from other units. The kind is added at the end of the
reader tags, so the tags of the other kinds do not change, and no existing
field changes until it names the new kind.
2026-11-24 18:10:24 -08: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 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
aiongg 0bac50867b Trial: a dock restored with a native float in a later pass of the first frame paints
The windows kit's renderer shares one texture store between the windows, as
eframe's does, applies each window's texture changes when it paints and panics
on a change to a texture it has not allocated. A frame whose first pass asks
for another and whose second shows a dock with a native float, as an app's
start-up, paints its float's window without that panic.
2026-11-25 00:12:07 +00:00
dotCooCoo e173286b23 Merge next into feat/range-param-step 2026-11-24 15:43:59 -08: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
aiongg 357f332549 Merge pull request #3396 from aiongg/test-speed-1124
Tests: gate-sized samples and inputs for the slowest tests and the UI suite
2026-11-24 16:32:00 -05:00
aiongg 603b9708bd Docking documents trial: clippy type alias and iter 2026-11-24 21:00:28 +00:00
aiongg 4e806d57a5 Dock trial: each stack section reports its panel's tab source 2026-11-24 20:41:30 +00:00
aiongg 271e9bf727 Dock: DockAreaOutput::pressed names the panel whose body a press went down in
A host body keeps its presses and its egui focus, so the group takes
no focus and DockAreaOutput::focused never names the panel clicked
into. BodyCx::pressed_within reports a primary press in the body's
rect on its layer whatever took it, sharing the press geometry with
surface_pressed, and the dock area reports the group's shown panel as
pressed.
2026-11-24 20:41:30 +00:00
aiongg 547056ecc4 Dock: a panel's document tabs are gesture sources (SourceKind::Document) 2026-11-24 20:41:30 +00:00
aiongg 47c7a5d041 Dock trial: the handed-over drag's drop mark is the tab strip's, not the floated window's own 2026-11-24 20:41:30 +00: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 283490a083 Drag: look the moving container's layer up at each hit test
drag::start took the source container's layer from the layers shown last
frame. A window floated in the pass before it continues a press (a rail
popup dragged out) runs its body, and so starts its drag, before its first
layer is recorded, so the session moved no layer: drop targets did not look
through the dragged window, and on release the window's own drop target,
the top layer under the pointer, took the drop and refused it, leaving the
panel floating. moving_layer now reads the source's layer from the layers
shown last frame at each hit test. The plain-egui hand-over trial floats
its window in the pass the press is handed over, as the app does.
2026-11-24 20:11:24 +00:00
aiongg 04bb1e1b5b ui-patterns tests: settle after dialog actions instead of fixed frame counts
Save for Web's open and palette helpers, its slices test, Export As's scale test
and the New Document card tests wait until the dialog is stable rather than 4 to
30 frames; the card tests run without motion, since they read cards where they
are painted. Clock-timed steps stay as they were.
2026-11-24 19:57:56 +00:00