Commit Graph

20164 Commits

Author SHA1 Message Date
bflatastic d922e22206 A drag on the Recolor Artwork and Color Themes wheels runs to its release for colours kept in CMYK: each wheel gets the host's round trip (HarmonyWheel::stored_as), the colour written in the row's model and read back, so the drag's own echo no longer reads as an outside change 2026-11-24 08:11:29 +07:00
bflatastic 14efb81a42 A held action key plays its action once: its repeats play nothing, as production's action keys ignored repeats 2026-11-24 08:07:49 +07:00
bflatastic ccb2a0d32c Format: import order in the font lookup 2026-11-24 08:00:38 +07:00
bflatastic 65edb2444f Merge branch 'area/app6' into area/app4 2026-11-24 07:55:46 +07:00
bflatastic 4690694273 Merge branch 'area/app5' into area/app4 2026-11-24 07:55:41 +07:00
bflatastic fa337e8af7 The Type tool's editor takes the keys back when a press on its canvas ends while the edit goes on: the press focused the canvas, so after a Cmd+Space zoom or a caret press Space lent the Hand and typing reached nothing, where production kept typing in the text 2026-11-24 07:51:44 +07:00
bflatastic 48340b7bc3 Copy and Cut with text selected in another window's label copy and cut the art: the Copy or Cut is left to the labels, and when no label of the window copied anything in that pass it runs in the next pass on the selection it was given, as production did; production's test assertions and its two tests of a Cut left to the labels come back 2026-11-24 07:51:13 +07:00
bflatastic bb166fb8b2 Merge branch 'area/app8' into area/app4 2026-11-24 07:39:15 +07:00
bflatastic ba7e8bfc02 Merge branch 'area/app2' into area/app4 2026-11-24 07:39:11 +07:00
bflatastic a56797c21f Unlinked corner rows: each corner's label in the shared label column, its radius field after it and its Corner menu beside the field, wrapping under it in a narrow panel, as production laid them out; the rows no longer overlap 2026-11-24 07:37:26 +07:00
bflatastic 4b12f63989 Merge branch 'area/app7' into area/app4 2026-11-24 07:33:35 +07:00
bflatastic fa5fcf167b Injected input reads as injected for the whole pass that carries it: the app answers the requests waiting on injected input at the end of its pass (VectorcraftApp::poll_input after ui), not in tick at the pass's start, where ControlChannel::poll_input counted the pass's step as run before the dialogs read WindowHost::injected_pass; an OK that injected input presses on the install approval stays open and the status line says why, as production did, instead of closing and asking again 2026-11-24 07:30:41 +07:00
bflatastic 2c7bdda6ad Merge branch 'area/app7' into area/app4 2026-11-24 07:28:35 +07:00
bflatastic 91a1942f89 Tests: the Image Trace object's Control bar and Properties checks find the Preset and View labels as drawn, their colons being runs of their own 2026-11-24 07:25:20 +07:00
bflatastic 691c697041 An open Keyboard Shortcuts dialog takes the window's commands whenever they differ from its own, not only when their count does
A plug-in removed and another installed between two frames left the count equal, and the dialog kept listing the removed plug-in's row (an_open_dialog_follows_live_effect_plugins, when another test installed a plug-in meanwhile).
2026-11-24 07:25:12 +07:00
bflatastic 9dde889711 Merge branch 'area/app3' into area/app4
# Conflicts:
#	apps/vectorcraft-web/Cargo.toml
2026-11-24 07:15:04 +07:00
bflatastic 52f7763643 Tests: the plug-in run tests that start a run from a dialog's OK hold its job until they run it, so a fast run is still running when they look
The OK frame runs two passes, and the second pass's tick applies the runs that are done: a light run whose thread ended between the passes was already applied when the test checked that it runs in the background. The window-driven run tests give the app a host over ManualJobs and run the held job when they choose.
2026-11-24 07:06:07 +07:00
bflatastic ec9a06b494 A click on the Image Trace button's arrow opens the presets list without tracing: the button's main part runs imageTrace.make with the Default preset as its bound command, which the arrow's toggle does not activate, as production's separate main and arrow parts did 2026-11-24 07:04:50 +07:00
bflatastic b80cf382df Merge branch 'area/app8' into area/app4 2026-11-24 06:52:56 +07:00
bflatastic 44ae88619f Merge branch 'area/app6' into area/app4 2026-11-24 06:52:52 +07:00
bflatastic c766e909a2 Tests: the Option-8 step of brackets_size_the_blob_brush_and_the_eraser runs on a macOS shell, as the Turkish Mac keyboard it models: elsewhere Alt+digit starts an Alt code 2026-11-24 06:50:15 +07:00
bflatastic 864534ca84 Tests: the read after a script that left the folder is seen asking for a frame through the repaint observer, which sees every request; the repaint callback dropped it behind the first read's request, still pending in a context that runs no pass 2026-11-24 06:49:37 +07:00
bflatastic c1959b6faa Merge remote-tracking branch 'origin/main' into area/app4
# Conflicts:
#	apps/vectorcraft/src/app.rs
2026-11-24 06:45:53 +07:00
bflatastic fd1448973f Desktop printing on Windows: 150 minutes and test binaries without debug info, as ci.yml builds them; a Cargo.lock change finds no cache and its cold build ran past 90 minutes 2026-11-24 06:41:31 +07:00
bflatastic a7a7ad0e1f Web build: native-only items are compiled only off wasm, egui_extras is a dev-dependency (only a test uses it), and geom drops its unused thiserror 2026-11-24 06:34:27 +07:00
mohamedwithai ce5af98dd5 Fix #6929: NHM Writer's legacy Tamil keymaps (symbol fonts) type their characters on Windows (#6930)
* Type: NHM Writer's legacy Tamil keymaps (symbol fonts) type their characters on Windows

NHM Writer's legacy Tamil keymaps (e.g. "Tamil Phonetic StmzhRgb" for
SR-Tamil fonts) post each byte as a WM_CHAR of U+F000 + byte, Windows'
symbol-font convention. egui-winit's is_printable_char rejects the
Private Use Area, so the Type tool got nothing (only the tool's
Backspace presses arrived).

windows_symbol_chars notes U+F020..=U+F0FF characters in winit's message
hook, in order with Backspace presses, and hands them to the frame as
Event::Text, unchanged (symbol fonts map exactly these code points),
each before the Backspace press that followed it. Unchanged matters:
as Latin-1, byte 0xAD (SR-Tamil's ஷ) would become U+00AD, a soft hyphen
the text engine never draws.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SY4wMcmnVnfGn5yC3dDic2

* Contributors: add my display name (HASAN CGI)

* Type: symbol-font characters keep their order among all typed text and keys; no new unsafe

Review of #6930: windows_symbol_chars now notes every character and key
press the window gets, not only Backspace, and places each symbol-font
character before the text or key press that followed it (a symbol then
an ordinary character, or a symbol then a navigation key, no longer
swap). It no longer has a message hook of its own: windows_alt_codes's
existing msg_hook, which already reads each MSG, hands it the message,
so the module has no unsafe code. Tests cover symbol/ordinary-text and
symbol/navigation sequences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SY4wMcmnVnfGn5yC3dDic2

* Revert "Contributors: add my display name (HASAN CGI)"

This reverts commit 78ff9cbb2a.

* Type: rustfmt order for mod windows_symbol_chars

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:22:04 -06:00
bflatastic 490b12dd0d Tests: the palette's build count is checked step by step, on the steps the shared parts of the catalog held still through, instead of rerunning the trial until a whole run held still
Plug-in installs, the Scripts folder and the fonts of tests running alongside move the catalog's generation. Each step now notes them as it begins and ends: a build exactly when the key moves, the language step moves the key, and every other step whose shared parts held still keeps it.
2026-11-24 03:04:25 +07:00
bflatastic 531e349ea8 Tests: the tests that read or change process-wide state the canvas and the spelling walk depend on take turns
The custom dictionary is the whole process's, and each change moves its generation: a Check Spelling walk that sees it move between the word shown and the next step checks its scope again from the start, so a test in another thread adding or removing a word made change_to_the_same_word_changes_nothing_and_goes_on show the first word again. The walk tests and the tests that change the dictionary now hold testing::custom_dictionary.

The proof view (Proof Colors, Overprint Preview, Separations Preview) is the whole process's too, and the canvas renders through it: a Proof Setup test turning Proof Colors on between two of a canvas test's renders made them differ (a_drag_on_the_canvas_draws_raster_effects_at_a_lower_resolution, dragging_an_object_with_raster_effects_draws_its_rasters_moved). The Proof Setup tests' lock moves to testing::DefaultProofView, which the canvas tests that compare renders (keeping_color_settings) and the control test that sets the view also hold.
2026-11-24 02:51:19 +07:00
bflatastic 968db52379 Quick Pen bar: below or above the path's end gives way where it runs off the canvas and the other side fits or runs off by less, from the bar's height in the last pass, as production did; the framework's flip lined the bar up with the gapped point over the end's row 2026-11-24 02:50:50 +07:00
bflatastic 6d51736e27 A held key repeats its command again (RootEnv::shortcuts_repeat), as production's dispatcher did with repeat on 2026-11-24 02:49:53 +07:00
Dylan M. Taylor 3465b06c38 revert: restore scheduled release.yml dry-run on main (#9184) 2026-11-23 14:45:47 -05:00
bflatastic 3a53c15d7e Pin craft-libs at bf62d509f (port/stubs head); egui fork unchanged at f5025284 2026-11-24 02:17:49 +07:00
BFlat 5688239cb5 Merge pull request #9179 from dotCooCoo/fix/scriptcheck-unread-code-folder 2026-11-24 01:42:50 +07:00
bflatastic 8e8bbdb8a5 Tests: the Alt character chords are typed in a context whose last frame had the Type tool's editor focused, as a window that has drawn a while has: the framework holds an Alt chord's text back for a binding around the last pass's focus 2026-11-24 01:38:09 +07:00
bflatastic ef9bd533aa The Type tool's editor lets the app's Cmd chords and function keys run while it types (KeyUse::with_command_keys), as production did; Enter on a dimmed palette result closes the palette and the status line says why (PaletteOutput::refused), as production did 2026-11-24 01:38:08 +07:00
bflatastic 4f7876ef74 Web: craft-web-api is a wasm32 dependency, as its only user (the page API module) is wasm-only; native builds no longer warn that it is unused 2026-11-24 01:33:21 +07:00
bflatastic 877b7c13cb Docs: fonts describe the framework's interface font stack, set up by ui_fonts() and installed by embed::install; theme::install_fonts is gone and the interface-fonts feature changes nothing; the web font rows name the files and retry wait the code has now 2026-11-24 01:25:25 +07:00
Dylan M. Taylor 93bc8da6d7 ci(release): publish scheduled nightly prereleases (#9181) 2026-11-23 13:17:42 -05:00
bflatastic 531890f668 Pin craft-libs at 0726c0f87 (port/stubs head); egui fork unchanged at f5025284 2026-11-24 01:05:23 +07:00
bflatastic aeadffa8d8 Merge branch 'area/app3' into area/app4 2026-11-24 01:01:19 +07:00
bflatastic e2365ead0b Tests: the OS-window hosts list the main window and every OS window in each pass, as egui-winit does; the native harness holds files over a window before it drops them, as the OS does; F7's text-field guard clicks the Layers panel's search field once the dialog has gone and releases it with a canvas click; the column-places case finds the end dock by its path; the Tools panel's ••• button is looked up outside the drawer, whose title has the same name; icon_column moves from the tests to the module 2026-11-24 00:59:33 +07:00
bflatastic ada0caaf16 Docking and drops as production: the area's edits of the pass are kept unless a command changed the workspace in it (the revision read before the pass), so a native window's OS placement is recorded; a float command that moves an OS window moves its recorded placement with it; Dock column n and Dock icon count from the icon column (the iconic column holding the most icon-group panels, production's icon_column), and a column docked out of the icon column opens expanded; a dropped file with no name opens or is placed by its sniffed format (an SVG opens, a raster image is placed) 2026-11-24 00:59:32 +07:00
bflatastic 7ea8572e70 Merge branch 'area/app2' into area/app4 2026-11-24 00:55:10 +07:00
dotCooCoo a149f93392 Script checker: code the check can't read keeps a Folder's length, hidden and readonly setters
The check leaves out `length`, `hidden` and `readonly` set on `new
Folder(...)`, a `Folder` place, or a variable holding one, but a script
can give that name a File object in ways the check does not read. Such a
setter now counts as a file write in a check whose files:

- use `with`, or name `eval`, `Function`, `evalFile` or `constructor`,
  as a word or as a string literal in brackets (`this['eval'](s)`,
  `$['evalFile'](f)`, `(function () {}).constructor(s)`)
- read, call or assign a property in brackets when the brackets hold
  anything but one string or number literal (`this[k](s)`,
  `this['ev' + 'al'](s)`, `this[('eval')](s)`, `this[0, 'eval'](s)`,
  `$[k](f)`, `g[k] = ...`), including a preprocessor line inside the
  brackets
- assign a property in brackets whose name is a string literal longer
  than 256 characters, or properties of more than 1,000 names
- assign or declare `Folder`

A variable whose name a member assignment writes (`$.global.d = ...`,
`this.d = ...`, `this['d'] = ...`) counts as one that may hold a File
object. Array literals, `o['plain']` and `a[0]` leave the Folder alone.

docs/mcp.md and the progress line in docs/target-app-parity.md state the
rule.
2026-11-23 09:54:50 -08:00
bflatastic 328e8ccb56 Tests: the palette's build count is read on a run the process-wide fonts, plug-ins and scripts held still through, as the font menu's tests do (tests alongside move the catalog's generation); the raster-effects drag test says which pixels differ from a fresh renderer's when it fails 2026-11-24 00:53:04 +07:00
bflatastic 1a595fffae Quick Pen bar sits a gap below and beside the path's end, as production's corner did; Save PDF closes when its write asks first (the save panel, or whether to replace the opened file), as production did; tests: Save a Copy's Cancel cancels, Save PDF's path is read from the app's job, the recolor right-click takes the New chip, the Keyboard Shortcuts import clicks the dialog's Import… and reads its review, the in-window menu's paste is answered as egui-winit answers RequestPaste, a press and release in one frame gets the release's pass, a new Type edit follows a frame without the last one's editor, trace presets are found past a menu row's check space 2026-11-24 00:36:22 +07:00
bflatastic 3d5ac9db1f Linux clippy: the clipboard answers whether it still holds the Copy made here (ClipboardBackend::owns), by its text or its bitmap's size with the UI thread's short wait, as production's check did; the Wayland cursor-theme check that nothing reads any more goes with its test (the framework hides the system pointer under every painted cursor); the test-only spawning guard nothing takes goes; the XWayland choice moves out of main 2026-11-24 00:31:53 +07:00
bflatastic 317ec6b197 Tests: Help F1 sends each key's release, as a keyboard does (a second press of a key still down is a repeat); the bracket test gives the tool its first frame before typing, as its key claims start there; a Type tool command moved to another chord runs on it while typing 2026-11-24 00:15:37 +07:00
bflatastic 48b1adc3b4 Type tool: its app commands with a chord (align, justify, underline, super- and subscript, size steps, reset tracking and horizontal scale, highlight font name and kerning, hidden characters, line composer, hyphenate, create outlines) join the type editor's typing command set, so their chords run while it types under TypingRule::AllWait, on the app command's chords with the user's own; an Alt chord that types a character loses its press when the layout typed other text with it, so that text is typed as it came (raw_input in the desktop, web and test hosts) 2026-11-24 00:15:36 +07:00
bflatastic 0c2b00d904 Tests: a swatch click reaches the panel's apply, as the panel's used does (it forwards no Select); rustfmt on the files of the last three commits, formatting only; the Corner Tool panel test passes its show function as it is 2026-11-23 23:01:06 +07:00