Commit Graph
615 Commits
Author SHA1 Message Date
BFlat 730c8a35c7 Merge pull request #3426 from dotCooCoo/fix/prefs-open-size
ui-patterns: PreferencesWindow can open at a size the host gives
2026-11-27 14:06:05 +07:00
FredApps ecb69983ef Merge pull request #3146 from storytold/fix/docked-pane-divider
dock: a docked pane shows a divider on its inner edge (wordcraft#7317 C7-9)
2026-11-26 11:14:37 +01:00
FredApps 02bc2f8264 Merge branch 'next' into fix/docked-pane-divider 2026-11-26 10:33:16 +01:00
FredApps 9140bb0b57 Merge remote-tracking branch 'origin/next' into tc14-3510 2026-11-26 16:08:40 +07:00
dotCooCoo 3fab8529b3 Merge next into fix/prefs-open-size 2026-11-25 20:26:17 -08:00
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 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 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 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
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
Martin BallandClaude Opus 5.5 8ba0526fcb ui-contract, ui-patterns: the quiet field's docs name surface.background and link FieldLook::Quiet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:56:35 +00:00
Martin BallandClaude Opus 5.5 ff6de75f02 text field, palette: a FieldLook replaces quiet and muted_placeholder; quiet fill is surface.background
The quiet field's resting fill is surface.background (WordCraft's t.ribbon), the quiet look implies the muted placeholder, and the quiet_field doc link resolves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:42:41 +00:00
David MannandClaude Opus 5.5 b0f72d8dad SectionList: only a framed list sets the columns' gap
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:13:04 +01:00
Martin Ball d345604815 Merge origin/next 2026-11-25 23:06:18 +00: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 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 ea2211729e The waiting window's repaint is a docking::native function 2026-11-25 15:42:39 +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
Martin BallandClaude Sonnet 5.5 01ab6c5d1d ui-patterns: CommandPalette quiet look for an in-place search in a bar
The in-place palette face drew TextField::search at the field look: field fill and
the control edge, so in a title bar it read as a heavy outlined white box.

Add TextField::quiet (style key) and StyleCx::quiet_field: surface.chrome fill at
rest, surface.sunken under the pointer and while focused, line.border edge at rest
(line.divider disabled). Focus and invalid edges stay the field's own. CommandPalette::quiet(bool)
passes it to both the closed and open in-place field; default false, so the dialog
face and other users are unchanged.

For storytold/wordcraft#7682.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 12:54:51 +00: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 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 7cb4ffd514 ui-contract, ui-panels panel: QuietHeader, a root style value; under QuietHeader::Heads a titled panel's quiet title (an inspector's kind line) heads its body as a rule would (HeaderRegion::heads, set by Panel::titled), so the first section under it draws no rule above it and sections after it keep theirs. QuietHeader::Ruled, the default, keeps today's rule above the first section, so no other app changes. Inspector story under Heads; trial 2026-11-25 10:24:16 +07:00
dotCooCoo ff5bb9b5c7 Preferences: PreferencesWindow::size sets the size the window opens at
The window opened at DEFAULT_SIZE (1040 by 800) with the page list, or
the cards' own size, and a host had no way to choose another. `size`
opens it at the given size until the user resizes it. The window's least
size still applies, and a size that is not finite is ignored. Without
`size` the window opens as before.
2026-11-24 18:36:27 -08:00
dotCooCoo 87528f2fb9 Preferences: PreferencesWindow::page_steps adds Previous and Next to the footer
With page_steps, the window's footer starts with Previous and Next
buttons. They show the page before and after the shown one among the
pages the search lists, and each is disabled at its end of the list.
Only the paged layout shows them; a window of cards scrolls from page to
page and keeps its narrower minimum width.

PreferencesPageOutput::listed reports the ids of the listed pages, which
the window reads to find the neighbors of the shown page.
2026-11-24 18:11:06 -08: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 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 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 30770cf864 Merge pull request #3300 from aiongg/next-sync-1124
Merge storytold main into next (24 Nov sync)
2026-11-24 14:48:09 -05:00
Dylan M. Taylor a4db799563 Merge pull request #3315 from dylanmtaylor/filmcraft/float-raise
dock: the host's focus request brings the floating window that holds the panel to the front
2026-11-24 13:54:31 -05:00
aiongg a2967e3cc1 DockAreaOutput::window_files names the panel each drop landed on
A file drop on a floating OS window reports the shown panel of the group under
the drop, from the drop session's pointer; the first group's on the title row or
when no pointer is known. ui-docking.md covers documents, swatches, raise and
WindowFiles.
2026-11-24 18:36:28 +00:00
aiongg 4db99f65a2 Dock: a panel's documents as tabs of its group, and a data-colour swatch on tabs
PanelSpec::documents lists what a panel shows (a Timeline's compositions) as tabs
after the group's panel tabs, in the same strip: one fit, one overflow menu, one
keyboard order. A pick reports DockEvent::DocumentPicked and activates the panel;
a close reports DockEvent::DocumentClosed. PanelSpec::swatch and
PanelDocument::swatch show a data colour in the tab's icon slot.
2026-11-24 18:36:04 +00:00
aiongg fc5f4b2706 DockArea::raise: the floating window holding a panel comes to the front in this pass
An OS window gets WindowAction::Focus; a window on a layer goes to the top of
egui's area order through overlay::raise, which now raises floating windows too.
2026-11-24 18:35:31 +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 8fe39699a8 Merge pull request #3313 from dylanmtaylor/filmcraft/dock-focus-panel
dock: a host moves key focus to the group that shows a panel, as a click on its tab does
2026-11-24 12:52:40 -05:00
Dylan M. Taylor a668cda8f0 Merge pull request #3310 from dylanmtaylor/filmcraft/dock-gesture-sources
dock: DockArea reports the gesture sources it drew
2026-11-24 12:52:29 -05:00
dotCooCoo f0a13eac30 Merge next into feat/color-row-alpha 2026-11-24 09:36:17 -08:00