Commit Graph
21137 Commits
Author SHA1 Message Date
dotCooCoo 6b7b780c22 Color Wheel: contrast measures a painting tool's color without the selection's drawing
While the Live Paint Bucket (or the Shape Builder, for the fill) is the
active tool, the Fill and Stroke proxies show the color the tool paints
with. color.contrast still took the opacity and blend modes from the
selected objects, so it rated the bucket's color at an opacity it is not
drawn with, and refused to answer when the selected objects were drawn
differently. It now draws the tool's color in Normal mode, at `opacity`
or fully opaque, as for a given `color`.

Docs: docs/mcp.md and the command's params text.
2026-11-25 19:09:41 -08:00
dotCooCoo 476437f29d Tests: the no-document canvas test runs its frames through part_frame
a_canvas_frame_without_a_document_releases_the_text_nodes creates its
context once and runs each frame through crate::testing::part_frame
with crate::canvas::show, in place of its own frame loop.
2026-11-25 19:03:30 -08:00
dotCooCoo 132d2da4a1 Merge main into feat/plugin-api-filter-type-images-symbols 2026-11-25 19:01:04 -08:00
dotCooCoo 16710bf8db Tests: the grid preview test draws through the shared frame helper
drawn_preview now runs each frame with testing::part_frame_uploads instead
of its own ctx.run_ui loop. part_frame_uploads is part_frame with the
frame's texture uploads kept in the returned FullOutput; part_frame calls
it and clears them as before, so its callers see no change.
2026-11-25 18:59:48 -08:00
dotCooCoo 7291fe1aed Merge main into feat/tangent-circle-add-points 2026-11-25 18:51:00 -08:00
dotCooCoo a868058b44 Shortcuts: panel and dialog commands whose params are all optional can be given a key
Edit › Keyboard Shortcuts left out UI commands with no default key, no
menu bar item and a params doc other than {} or {path…}, so New Swatch…,
New Color Group…, Color Group Options…, New Brush…, Brush Options…,
the Layers panel's Options for Selection…, Corners…, Placement Options…,
Relink…, Perspective Plane Options…, Bullets and Numbering…, Missing
Fonts Dialog and Find Fonts in Folder… could not get a key, although
each runs with no params. They are now listed
through a KEY_ONLY_UI list that replaces the `id ==` checks for Rename
and Color Picker…. A key opens the dialog for the selection or the
current item, or the status bar says why it cannot.

Color Group Options… with no group selected now says "select a color
group in the Swatches panel, or pass group" instead of "missing `group`".

Docs: docs/mcp.md, docs/ui-parity.md.
2026-11-25 18:44:51 -08:00
dotCooCoo 924c4409bb Preferences test: run the reset frame through testing::app_frame
The test of a prefs.reset run outside VectorcraftApp::run now draws its
frame with crate::testing::app_frame on the window's context.
2026-11-25 18:43:42 -08:00
dotCooCoo 66ed890366 Merge main into feat/plugin-api-javascript-runtime 2026-11-25 18:42:48 -08:00
dotCooCoo 478ed51ace Merge main into feat/retype-installed-fonts 2026-11-25 18:40:00 -08:00
dotCooCoo acba47982f Merge main into feat/script-grants-list 2026-11-25 18:40:00 -08:00
dotCooCoo e68e05fc82 i18n: Retype messages are added in English only
The rows this branch added to the 25 catalogs are removed; translations
go through storytold/craft-i18n. The Retype run tests draw the progress
window and settle the context with testing::ui_context and part_frame.
2026-11-25 18:39:55 -08:00
dotCooCoo e44ae5b99b Merge main into fix/variables-reclick-selects 2026-11-25 18:39:15 -08:00
dotCooCoo b6b702f080 Merge main into fix/reset-preferences-interface-settings 2026-11-25 18:36:58 -08:00
dotCooCoo 280cef492e Retype: keep faces read for split shapes only
The installed-font search keeps a face that holds glyphs without
completing a shape only while a split shape is not found yet, and drops
the kept faces once every split shape is found. A shape matched whole is
compared without the kept faces.
2026-11-25 18:35:40 -08:00
ruchirguitar dd64c283e8 History tests: use the shared panel harness 2026-11-26 08:03:33 +05:30
FredApps ae70a8f174 Resolve main documentation conflict in History row menu PR #8845 2026-11-26 03:27:16 +01:00
dotCooCoo 9375decc46 Merge main into fix/copy-region-ids-isolated-ancestor 2026-11-25 18:25:59 -08:00
dotCooCoo be3fd3c5a3 Merge main into fix/floating-panel-minimum-width 2026-11-25 18:25:26 -08:00
dotCooCoo 1795c050c3 Merge main into fix/gradient-midpoint-owner 2026-11-25 18:25:26 -08:00
dotCooCoo 0f7844ecb6 Preferences: Apply after entering Touch keeps Touch's task bar
After an Apply that entered Touch, the Enable Contextual Task Bar row
kept the value given to the workspace left, and the next Apply wrote it
to Touch. The row now shows the task bar in use after each Apply. When
OK leaves Touch, the workspace returned to takes the row only when it
was edited; otherwise it keeps the value it left with.
2026-11-25 18:22:36 -08:00
dotCooCoo 281cee4379 Live Corners: the Corners pop-up applies its radius after the Stack
The pop-up's Radius edits are now collected inside the Stack and applied
after it, as the kind and rounding radios already are.

relativeRadii no longer turns a plain path into a Live Corners path here;
that change goes to its own pull request. relativeRadii on a plain path,
an ellipse or a line leaves it as it is and adds no undo step.
2026-11-25 18:21:19 -08:00
dotCooCoo e60c5e3fa2 Tests: the panel harness holds the app-window panel lookup
`tests::panel_harness::floated` shows a panel docked or floating in the
whole app window and returns its body and named nodes, with `Shown::past`,
`past_named` and `middles`. The panel-row tests and the Gradient panel
tests both use it instead of their own copies.
2026-11-25 18:20:17 -08:00
dotCooCoo bd8e900251 Windows: the Blob Brush's Stylus Wheel size also opens the Wintab context
The Blob Brush takes Stylus Wheel for its Size, and its tip already
counts through Tool::reads_wheel. The test and the docs name it.
2026-11-25 18:16:02 -08:00
dotCooCoo 54c84108a1 Dialogs: Split Into Grid keeps one pass's edits, and the Picked files test uses the shared frame
Split Into Grid's fields edit a copy of the dialog values inside the grid
and keep it only when the pass takes effect, as form::stacked does, so a
measuring pass no longer changes the values the real pass reads.

tests::script_dialogs::frame returns the last pass's output, and the
Picked files group test reads the accessibility tree from it instead of
running its own frame.
2026-11-25 18:13:02 -08:00
dotCooCoo d2ea2ab725 Merge main into fix/gradient-panel-rows-wrap
# Conflicts:
#	crates/ui-egui/src/panels/gradient/tests.rs
2026-11-25 18:12:52 -08:00
dotCooCoo 192a041ec8 Merge main into feat/js-es2015-generators 2026-11-25 18:09:25 -08:00
bflatastic c71817638b Color Wheel: the contrast cache keys on tool_paints, which replaced bucket_paints
#9100 replaced Session::bucket_paints with tool_paints(stroke), and #7718's
contrast cache key still called bucket_paints, so main stopped compiling.
The key now records whether the active tool paints with the proxy in front,
the paint color.contrast measures.
2026-11-26 09:07:33 +07:00
dotCooCoo 8c97641c4e Export for Screens: the format rows test sizes its window through Window
Window takes an optional size (Window::sized), and the test that checks the
format rows at the default and least window sizes runs its frames through it
instead of its own copy of Window::run's frame loop.
2026-11-25 18:07:06 -08:00
dotCooCoo 0fd2672aa3 Docs: the scripting line names the Layer parent and the members still missing
The line said layers were not there yet, while a page item's parent is
already a Layer with name, typename and toString. It now names
Document.layers and Document.activeLayer as the members still missing.
2026-11-25 18:03:53 -08:00
dotCooCoo 48f055cf43 Merge main into feat/scripts-execute-menu-command 2026-11-25 18:01:37 -08:00
dotCooCoo 895fc362e8 JavaScript: a bound function inherits from its target's prototype
With ECMAScript 2015, Function.prototype.bind gave every bound function
Function.prototype as its prototype, so a bound generator function's
constructor was Function instead of GeneratorFunction. The bound function
now takes the target's prototype, read before length and name (ECMA-262
2020 section 9.4.1.3). Without the option it keeps Function.prototype,
as ES5 section 15.3.4.5 specifies.
2026-11-25 17:58:58 -08:00
dotCooCoo 0bda609041 Merge main into feat/windows-stylus-wheel-wintab 2026-11-25 17:56:18 -08:00
dotCooCoo 7418753350 Windows: the Wintab context opens only while the tool uses the wheel
The Paintbrush with a brush whose Size or Width is on Stylus Wheel with
a range the wheel can change, or the Eraser with a value on Stylus Wheel
and a variation above 0, uses the wheel. The app asks the active tool
(Tool::reads_wheel) once a frame and tells the host when the answer
changes (Services::stylus_wheel). Until a tool uses the wheel, a pen
message loads no Wintab32.dll, installs no hook, subclasses no window
and opens no context; when it stops, the context closes.
2026-11-25 17:53:48 -08:00
BFlat a54d28887c Merge pull request #7718 from dotCooCoo/feat/color-wheel-contrast
Color Wheel: Show Contrast reports the WCAG contrast against the color behind the selection
2026-11-26 08:51:15 +07:00
BFlat 050f7cf407 Merge pull request #9019 from dotCooCoo/feat/scripts-api-d1a-app-documents
Scripts: app gives scripts the open documents, their selection and page items
2026-11-26 08:50:54 +07:00
BFlat f966e8d664 Merge pull request #9104 from dotCooCoo/feat/plugin-api-last-filter
Plug-ins: Apply Last Filter and Last Filter… repeat the last filter plug-in
2026-11-26 08:50:06 +07:00
BFlat fc34e27d99 Merge pull request #9110 from dotCooCoo/feat/plugin-api-importers-place
Plug-ins: importers whose manifest sets place also read files for File › Place
2026-11-26 08:49:00 +07:00
BFlat 5fea446015 Merge pull request #9084 from dotCooCoo/feat/plugin-api-run-notices
Plug-ins: a filter or plug-in command can report a notice in the status bar
2026-11-26 08:48:46 +07:00
BFlat 8bf4a7d58f Merge pull request #9331 from dotCooCoo/feat/layers-range-select-art
Layers: Shift-click in the selection column selects the art of a range of rows
2026-11-26 08:48:31 +07:00
BFlat dc0c47a9a3 Merge pull request #9329 from dotCooCoo/feat/rotate-ruler-guides
Guides: selected ruler guides rotate with the Rotate tool and Object › Transform › Rotate
2026-11-26 08:48:18 +07:00
BFlat daccee9065 Merge pull request #9100 from dotCooCoo/fix/shape-builder-color-pick
Shape Builder: a fill chosen while the tool is active leaves the selection's fills
2026-11-26 08:48:05 +07:00
BFlat 49c567dc7c Merge pull request #9001 from dotCooCoo/feat/tangent-circle-preview-prefs
Path Precision Tools: the Tangent Circle Tool's options set its preview and how near it snaps
2026-11-26 08:47:43 +07:00
BFlat 30f6381618 Merge pull request #8493 from dotCooCoo/feat/circle-from-center
Shapes: the Circle tool draws a circle from its center through a point
2026-11-26 08:47:08 +07:00
BFlat 8ee6295e3e Merge pull request #9103 from dotCooCoo/feat/recolor-preset-library
Recolor with Preset: ask whether to limit colors to a swatch library first
2026-11-26 08:46:55 +07:00
BFlat c2b45ce9d1 Merge pull request #9091 from dotCooCoo/fix/issue-9051
Fix #9051: Display Print Size shows 100% at the display's physical size
2026-11-26 08:46:41 +07:00
dotCooCoo 9860ca3d6e Docs: Curvature Circle overview names the configured snap reach
The tool overview in docs/mcp.md said the pointer snaps within 5 screen
points. It now names the tool's Snap Tolerance (5 by default) and the
limit that Snap with Smart Guides Off sets while Smart Guides are off,
as the options section below describes.
2026-11-25 17:46:36 -08:00
BFlat 6d5fec9439 Merge pull request #8965 from dotCooCoo/feat/save-for-web-transparency-dither
Save for Web: Transparency Dither makes a share of partly transparent pixels clear
2026-11-26 08:46:29 +07:00
BFlat b07e98e3aa Merge pull request #9249 from dotCooCoo/fix/ui-port-text-divider-notice
UI: dialog and panel labels, separators and notices use Text, Divider and Notice
2026-11-26 08:46:16 +07:00
BFlat d3e555da05 Merge pull request #9155 from dotCooCoo/fix/gradient-presets-proxy-in-front
Gradient panel: a preset from the Presets menu goes to the proxy in front
2026-11-26 08:46:03 +07:00
BFlat d16fd75146 Merge pull request #9120 from dotCooCoo/fix/pathfinder-effect-options-followup
Pathfinder: effects journal every option they use, and Outline follows Precision
2026-11-26 08:45:50 +07:00