Commit Graph
537 Commits
Author SHA1 Message Date
BFlat bb84da2f88 Merge pull request #2965 from dotCooCoo/feat/unit-text
Units: number rows can show unit text, and UnitKind gains Milliseconds
2026-11-27 14:16:13 +07:00
BFlat fa29f503f8 Merge pull request #3554 from dotCooCoo/fix/segmented-narrow-room
ui-widgets: a segmented strip wider than its room moves segments to the next line
2026-11-27 14:11:48 +07:00
BFlat d70f4f4391 Merge pull request #3439 from dotCooCoo/fix/tool-pointer-ink
theme, ui-contract: a painted pointer takes overlay.cursor, which VectorCraft's themes pin white
2026-11-27 14:11:08 +07:00
BFlat 326856bd18 Merge pull request #3512 from dotCooCoo/fix/dock-band-host-items
dock: a narrow group's drag band leaves room for the host's header items
2026-11-27 14:06:45 +07:00
dotCooCoo 5f896c5bdf Document the PerInch unit variant 2026-11-26 21:00:09 -08:00
dotCooCoo 1d85617a61 Merge main into feat/unit-text 2026-11-26 20:38:25 -08:00
dotCooCoo 60626900b7 Merge next into feat/unit-text 2026-11-26 07:42:52 -08:00
aiongg 5ec98bd628 Merge remote-tracking branch 'upstream/next' into next-into-main-2
# Conflicts:
#	crates/ui-widgets/src/text/text_field.rs
2026-11-26 11:03:44 +00:00
FredApps cc59357033 Merge pull request #3475 from storytold/fix/wordcraft-7708-print-zoom-whole-percent
ui-contract: a ZoomPrecision env value lets zoom show whole percents (storytold/wordcraft#7708)
2026-11-26 11:14:23 +01:00
FredApps 7e7456955a docs: contract-api lists FieldLook, StyleCx::quiet_field and TextOptions::look
Regenerated with the contract-api bin; only the three entries this PR adds are taken, the file's other drift on next is left alone.
2026-11-26 16:30:14 +07:00
FredApps e39fd100af Merge remote-tracking branch 'origin/next' into tc14-3475 2026-11-26 16:08:37 +07:00
aiongg ecdc221f4a Merge next into main 2026-11-26 05:38:41 +00:00
dotCooCoo 1eeb7baf17 Merge next into feat/unit-text 2026-11-25 20:36:19 -08:00
dotCooCoo a830ff539b theme, ui-contract: overlay.cursor colors a painted pointer's marks and a tool's icon; VectorCraft's themes pin it white
overlay.cursor follows overlay.stroke unless a theme pins it, so pointers in other themes keep the color they had. VectorCraft Modern and Modern Medium pin it to #ffffff in both variants, so their tool pointers no longer show in the #ffa492 overlay tint, and their hand, magnifier, rotate and badge marks match the icons. The shared pointer art no longer borrows overlay.handle_fill for tool icons.

overlay.cursor joins overlay.stroke in the halo contrast rule, so a pin that misses the minimum is reported, and a user's accent keeps a theme's pinned cursor color. Trials; dumps gain the token.
2026-11-25 20:32:11 -08:00
dotCooCoo bdccf96831 ui-widgets: a segmented strip in a row or bar keeps one line
In a row, a bar included, the strip's least is its whole line again, so the
row's shrink step does not wrap it. It still wraps in a column narrower than
the strip. A rect with room for one line only keeps the segments on that line.

- ui-contract: `MeasureCx::in_row` says whether a component is a direct child
  of a `Row` body.
2026-11-25 19:43:32 -08:00
BFlat 54cbab4c5e Merge pull request #2964 from dotCooCoo/feat/dialog-confirm-held-refusal
craft-automation: ui.dialog.confirm of a held OK replies with the app's answer, a refusal in English
2026-11-26 10:25:33 +07:00
BFlat c901ddcb79 Merge pull request #2956 from dotCooCoo/feat/automation-ui-drag
craft-automation: ui.drag presses, moves in even steps and releases as one request
2026-11-26 10:24:55 +07:00
BFlat 40c4cb3157 Merge pull request #2949 from dotCooCoo/feat/fit-short-order
Fit: items rank their short forms, and late ones shorten after the free items leave
2026-11-26 10:24:19 +07:00
BFlat 14cd3ae8a9 Merge pull request #3513 from dotCooCoo/fix/link-text-contrast
ui-contract: link text reads at 4.5:1 on every surface it is drawn on
2026-11-26 09:56:34 +07:00
BFlat 733e35fea8 Merge pull request #3492 from dotCooCoo/fix/dock-group-band-keeps-tab
dock: a docked group's drag band narrows before the shown tab loses its first letters
2026-11-26 09:56:07 +07:00
BFlat 91877f4160 Merge pull request #3431 from dotCooCoo/fix/job-progress-layer-role
ui-contract, ui-panels: a job progress window's layer has the progress role, and OpenFilter::Asks leaves it out
2026-11-26 09:51:10 +07:00
Martin BallandClaude Opus 5.5 e173ef092e ui-contract: zoom_percent follows ZoomPrecision with zoom_codec
One zoom_decimals helper serves both, so the read-only zoom texts (Navigator slider, full-window title, zoom bar
entries) agree with the zoom fields. with_zoom_precision is pub(crate). Regenerates docs/contract-api.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:07:27 +00:00
aiongg 97794fff62 ui-contract: DocRun::coords draws a run at variation coordinates of its face; FontSample takes them 2026-11-25 20:37:43 +00:00
aiongg 2cc39c2c4e A modal that opens while a window it blocks has the keyboard takes it
A blocked window drops the keys, so a modal opened from a focused float by a key or a command (a save prompt in the main window) got none of them until the user clicked. The modal's window now gets one focus request 0.2 s after it becomes the app's modal, if a window it blocks still has the focus; an OS dialog that opens with the modal takes the focus in that time, and then nothing is sent. The modal's own popup windows keep the keyboard. It covers framework modals and FrameInput::app_modal alike (the docking of the former crate::ui did it for its floats, #306).
2026-11-25 19:11:46 +00:00
dotCooCoo ce87f5484d Merge next into fix/dock-group-band-keeps-tab 2026-11-25 10:22:44 -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 c3ff1715cb Merge pull request #3216 from storytold/design-port/pr-docking-rails
Docking and rails options
2026-11-25 11:05:51 -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
aiongg 41519eaae5 Merge commit 'f15b0e87d2' into ports-combined 2026-11-25 15:34:57 +00:00
aiongg e9543a634d Merge commit 'd6aed656f2' into ports-combined 2026-11-25 15:34:56 +00:00
aiongg f3f0e69fde Merge pull request #3505 from aiongg/app-stop-focus
The app's own widgets: focus follows egui's rule, and a canvas that can't take focus is a finding
2026-11-25 10:16:44 -05:00
skylartaylor 84febd9938 docs: regenerate contract-api.md 2026-11-25 15:58:07 +01:00
skylartaylor f62036b16a docs: regenerate contract-api.md 2026-11-25 15:58:07 +01: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
aiongg d6aed656f2 A press nothing takes leaves the app's document canvas focused
An unclaimed press surrendered the focus of a canvas declared with
host_canvas at the press (apply_press), and egui's click-away rule took
a focus the app itself had given the canvas at the release. The press
rule now keeps a declared canvas focused, and the begin hook takes the
focus on it off egui's rule, whoever gave it. A canvas the app no longer
declares follows egui's rule again.
2026-11-25 14:37:41 +00: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
skylartaylor 9a7c2255a2 Merge remote-tracking branch 'origin/next' into design-port/pr-menus-popups 2026-11-25 15:19:07 +01:00
dotCooCoo 36b0dc54b8 ui-contract, ui-widgets: link text reads at 4.5:1 in accent.text; a toast's links take the card's text color
StyleCx::link_look drew links in accent.solid, which the theme holds only to
the 3:1 non-text minimum, so link text read at 2.93:1 on the light panel and
2.30:1 on the dark one. It now takes accent.text at every contrast, the
accent step the theme holds to 4.5:1 on the panel, raised and sunken
surfaces. accent.solid is unchanged, so buttons and fills keep their color.

A toast's card is the inverse surface, where accent.text reads at 2.57:1 in
the default light theme and 1.24:1 in the dark one. Link::on_inverse draws a
link in text.on_inverse, always underlined, and a toast's action links use it.
2026-11-25 05:48:47 -08:00
dotCooCoo 170e0924b6 dock: a narrow group's drag band leaves room for the host's header items
The room a docked group's header keeps for the shown tab did not count
the items the host adds before the tab strip (DockGroup::extra). The
header parts are sized before the header runs, so in a narrow group the
band kept its full width and the shown tab got what the host items left:
12.3 pt of the 44.4 pt a shrunk tab keeps in a 72 pt compact group with
one host button.

- ui-contract: layout_memory::emit_width and layout_memory::width hand
  forward a measured width as emit_text and text hand forward a text. It
  serves the rest of the pass, comes back with a kept measurement, and a
  memoized view that replays emits it again.
- ui-panels: DockGroup's header hands forward the width its host items
  take, and the header parts add it to the room they keep before the band
  narrows. Until the header has handed it forward, and in groups without
  host items, the band narrows as before.

Tests: a_narrow_groups_drag_band_leaves_room_for_the_hosts_header_items
(both densities, both directions, one and two host items, one and two
tabs), a_replayed_view_hands_forward_the_width_its_run_measured
2026-11-25 05:47:36 -08:00
aiongg fda1a0c15d Merge storytold next into app-stop-focus 2026-11-25 13:32:10 +00:00
aiongg c136195d93 Merge remote-tracking branch 'upstream/next' into next-sync-1125 2026-11-25 13:28:36 +00:00
aiongg 0f8d8365e2 Focus given to the app's own widgets: held presses, stale records, canvases
The runtime keeps its surrender rule on the focus it gave an app's own widget
until no pointer button is down, so the release of the press that gave the
focus does not take it back. The record of the given focus ends once egui's
focus is elsewhere. Whether a widget is drawn is read from egui's widgets of
the running pass, for the given focus and for `host_canvas` findings alike.
Focus given to a canvas before `host_canvas` registers it follows the canvas's
keys.

A canvas drawn in a disabled `Ui` is a `canvas-without-widget` finding too;
the finding's text is made only when it is kept, and a fault is logged once.
2026-11-25 13:24:55 +00:00
aiongg 051c45335c Merge host-canvas-finding into app-stop-focus 2026-11-25 13:19:30 +00:00
aiongg 4bdb8b850a host_canvas: a canvas widget that takes no focus is the same finding
A widget drawn with the bare Sense::DRAG or Sense::CLICK is not focusable, and
egui takes the focus from it when it is drawn, so Tab is lost there too. The
end hook reads the sense of the canvas's widget and names it in the finding.
2026-11-25 13:10:39 +00:00
aiongg d6f213e0b1 Focus the runtime gives an app's own widget follows egui's rule
Focus that Tab, F6 or a framework request gave an app's own egui widget
kept the runtime's surrender rule (Never) while the runtime's press rule
left that widget to egui, so a press elsewhere released it nowhere. The
end hook of the pass that drew the widget leaves the focus to egui's rule,
the app's `surrender_focus_on`; until then the press or click of the pass
that gave the focus does not take it back. The stop of an app's own widget
sets no Escape filter, so Escape releases it as egui does; the declared
canvas keeps its filter.
2026-11-25 13:10:24 +00:00
aiongg 036526d425 Merge remote-tracking branch 'upstream/main' into next-sync-1125
# Conflicts:
#	.config/cargo-ci.toml
#	.config/cargo-dev.toml
#	.github/workflows/crw.yml
#	.github/workflows/workspace.yml
#	crates/font-catalog/README.md
#	crates/font-catalog/src/catalog.rs
#	crates/font-catalog/src/lib.rs
#	crates/font-manager/README.md
#	crates/font-manager/src/panel/app.rs
#	crates/font-manager/src/panel/browse.rs
#	crates/font-manager/src/panel/details.rs
#	crates/font-manager/src/panel/jobs.rs
#	crates/font-manager/src/panel/widgets.rs
#	crates/font-manager/src/store.rs
#	crates/font-manager/tests/flows.rs
#	crates/font-store/README.md
#	crates/font-store/src/lib.rs
#	crates/font-store/src/store.rs
#	crates/font-store/src/tests.rs
#	scripts/ci-workspace-tests.sh
#	scripts/test-workspace-tests.py
2026-11-25 13:05:50 +00:00
aiongg f1bf62a705 host_canvas: a declared canvas no widget draws is a finding
egui drops the focus of an id no interactive widget of the pass has, so Tab
lost the focus at such a canvas and started over at the first stop. The end
hook looks each declared canvas up among the pass's widgets and reports
`canvas-without-widget` when it is not there; debug builds log it once.
2026-11-25 13:00:57 +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
dotCooCoo 52948ceaaf dock: a docked group's drag band narrows before the shown tab loses its first letters
In a header too narrow for the drag band and the shown tab, the band took
its whole width first and the tab strip got what was left. In the DockArea
story's 40 pt Tools column the shown tab was 2 pt wide at compact density
and missing at comfortable density, though TabStrip keeps the shown tab
visible.

- ui-contract: HeaderParts::end_narrows lets a container's end parts give
  up width, down to a least, so the header's children keep a given room.
  The header line applies it; headers that fit are unchanged.
- ui-panels: DockGroup keeps room for the shown tab with its first three
  letters (with its icon, count, mark and close button, and the overflow
  button beside other tabs), and its band narrows to an icon's width
  before that room shrinks. Floating groups use the same header.

Test: a_narrow_groups_drag_band_narrows_before_the_shown_tab
2026-11-25 03:57:40 -08: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