Commit Graph
563 Commits
Author SHA1 Message Date
bflatastic 9dde889711 Merge branch 'area/app3' into area/app4
# Conflicts:
#	apps/vectorcraft-web/Cargo.toml
2026-11-24 07:15:04 +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
mohamedwithaiandClaude Opus 5.5 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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
2026-11-23 17:22:04 -06:00
bflatastic 3a53c15d7e Pin craft-libs at bf62d509f (port/stubs head); egui fork unchanged at f5025284 2026-11-24 02:17:49 +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 531890f668 Pin craft-libs at 0726c0f87 (port/stubs head); egui fork unchanged at f5025284 2026-11-24 01:05:23 +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 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 81e43f086f Pin every craft-libs crate to e36d3d003 (port/stubs head), REV in xtask pdf_deps with it; egui fork stays at f5025284, as that commit pins it 2026-11-23 22:23:03 +07:00
bflatastic d6ab5d69a1 The web app builds for the browser again: the host's file service is the framework's BrowserFiles (the app's WebFiles lacked Files::save, can_pick and browser_saves), the font stack fetches the served interface faces through BrowserFetcher, the page's key filter reads the running context through its slot, a drop the page followed lands where VectorcraftApp::drop_spot says, and the calls the framework replaced (want_chars, drop_paste_key_presses, the native-only embed::before_ui) are gone 2026-11-23 21:40:48 +07:00
bflatastic 16d8a42b7b Merge branch 'area/app3' into area/app4
area/app3's formatting, clippy fixes, restored behaviours, the install_fonts test and the wasm-only web-time dependency. save.rs keeps area/app3's removal of save_reporting and cancel, which nothing calls, with this branch's native-only save flow on top. A recovered copy's age is read with the recovery store's clock, which stamped it (the page's on the web, where the document clock reads none). The lock gains web-time under the UI crate.
2026-11-23 21:32:52 +07:00
bflatastic 7323bd60d8 Pin every craft-libs crate at 0c633a83c (port/stubs) and the egui fork at f5025284, the revs that commit builds with. The five crates production pinned ahead of the framework branch move too: 0c633a83c contains their commits, and split pins resolved second copies of craft-svg, craft-image-codecs, craft-tiff, hayro-jbig2 and others, which pdf-deps rejects 2026-11-23 18:53:47 +07:00
bflatastic 7d1a87bf31 Web app: kept_from_browser builds only for wasm32, where its caller is 2026-11-23 17:38:28 +07:00
bflatastic dcf59f6a6b macOS: install the native menu bar at startup again, unless in-window menus are asked for 2026-11-23 17:32:57 +07:00
bflatastic 482c937100 Apply clippy's suggested fixes in the UI crate and the web app 2026-11-23 17:04:22 +07:00
bflatastic fa7a2afc44 Format the workspace with cargo fmt 2026-11-23 16:42:57 +07:00
FredApps a3b0b3dec0 deps: pin all craft-libs crates to 205042e (craft-libs#778)
Rule 10: every storytold/craft-libs crate is at the same rev, now
205042e406b630cda653990649264a78fea6296b, the merge of #3136 on
craft-libs main. That rev still skips a form already on the drawing
stack (ISO 32000-2 §8.10.1) but no longer reports it as
ContentTruncated, so a 200-shape knockout-mask PDF imports completely.

Also moves the leftover per-crate pins of craft-font-catalog and
craft-web-api onto the same rev.
2026-11-23 03:59:59 +01:00
bflatastic c537758ead Follow the refreshed framework: channel rules from the alpha rule's whole steps, Color Guide glue reads a cell's grid spot and colour, Save for Web's table edits take the edit and its colours, preset previews as keyed faces, constructors for hold settings, card sources, web documents and preset drafts, the drawer marks a tool only when there is one, Shift+Enter reaches the type tool, a nudge reads Backtick from the keys held with its arrow, the web host drops pick_pending, font loading takes every cataloged version of a family's faces 2026-11-23 06:33:12 +07:00
bflatastic 507dca786f Control port errors in the start-up test read the framework's wording; port 0 picks a free port 2026-11-22 23:35:58 +07:00
bflatastic 6411453ed5 Give the app its window before the first frame, and the frame's keymap the user's shortcuts
The hosts hand the app the window's context when they create it, so the first frame's input has
the app's commands. The frame's command input carries the shortcut overrides and the hold
shortcuts (kb.C14). Framework Select All and Delete run the engine's select.all and edit.clear.
shortcuts.set reads X X and Hold X (kb.C13b). Plug-in shortcut tests draw a frame after an
install, as the window's keymap takes new commands per frame (shortcuts-w7 note 4).
Test frames adopt their context first; testing gains part_frame and fixture_input.
2026-11-22 21:31:40 +07:00
bflatastic 74fdf21a3b Desktop host installs the system clipboard and its Linux probe; Revolve's gizmo shows over the canvas; Preferences' Reset question takes the control channel's answer; ui.pdfSummary.save runs and is enabled with a Summary open; Presentation Mode is a rule of the frame's one command gate; the panel edge scroll, the rich-clipboard flag and test helpers of deleted tests go 2026-11-22 09:53:35 +07:00
bflatastic 4650ff36f9 Desktop host: builds on the runtime's eframe hooks; pumps the file panels through the window's dialog host in the interface language, keeps the picks' folders in the UI state, starts the pen reader into the install, drops the Windows pen input hook the pointer feed replaced; Brush Options runs its Key Color pick from its pump; the prefs and start-up tests read the new state fields 2026-11-22 09:40:45 +07:00
bflatastic 20d9113f68 Write the craft-fonts tables with the framework's fonts-build: embedded faces for the interface stack, served faces for the web 2026-11-22 08:43:18 +07:00
bflatastic a724e36fc7 Pin craft-libs at the port branch merged with next 2026-11-22 02:08:29 +07:00
bflatastic 6a55604109 Spell framework paths through the craft facade at their real public paths; make modules the sibling files reach pub(crate); drop the test-module line of a deleted file 2026-11-22 00:38:54 +07:00
bflatastic 77c8565c84 Pin craft-web-api at the framework head 2026-11-21 23:54:09 +07:00
bflatastic a30131fb4d Pin craft-libs at the framework head, drop unused workspace entries, mcp and apps reach automation through the craft facade 2026-11-21 23:49:27 +07:00
bflatastic cb39ac0681 files-w6: net change of 1 commits
- files-w6: written from its sheet
2026-11-21 23:42:19 +07:00
bflatastic 7a8ceebb67 export-w20: net change of 2 commits
- export-w20: written from its sheet
- export-w20: repair 1
2026-11-21 23:41:52 +07:00
bflatastic c87a45cc1b color-w8: net change of 2 commits
- color-w8: written from its sheet
- color-w8: repair 1
2026-11-21 23:29:22 +07:00
bflatastic 82ed6e4630 canvas-w25: net change of 2 commits
- canvas-w25: written from its sheet
- canvas-w25: repair 1
2026-11-21 23:26:57 +07:00
bflatastic e558239783 canvas-w12: net change of 2 commits
- canvas-w12: written from its sheet
- canvas-w12: repair 1
2026-11-21 23:25:56 +07:00
bflatastic fb5879acdc shortcuts-w6: net change of 1 commits
- shortcuts-w6: written from its sheet
2026-11-21 23:25:20 +07:00
bflatastic eaf2c88ed5 menus-w7: net change of 1 commits
- menus-w7: written from its sheet
2026-11-21 23:23:53 +07:00
bflatastic 65818d6f30 shell-w19: net change of 2 commits
- shell-w19: written from its sheet
- shell-w19: repair 1
2026-11-21 23:23:17 +07:00
bflatastic 51dd1e0288 shell-w14: net change of 2 commits
- shell-w14: written from its sheet
- shell-w14: repair 1
2026-11-21 23:22:53 +07:00
bflatastic 40b354dbb6 shell-w13: net change of 2 commits
- shell-w13: written from its sheet
- shell-w13: repair 1
2026-11-21 23:22:47 +07:00
bflatastic d2b499cfe2 shell-w12: net change of 2 commits
- shell-w12: written from its sheet
- shell-w12: repair 1
2026-11-21 23:22:43 +07:00
bflatastic 5635b53c1c shell-w10: net change of 2 commits
- shell-w10: written from its sheet
- shell-w10: repair 1
2026-11-21 23:22:31 +07:00
bflatastic c776dfc6a4 shell-w8: net change of 1 commits
- shell-w8: written from its sheet
2026-11-21 23:22:20 +07:00
bflatastic b8ece9f34f hub-w3: net change of 2 commits
- hub-w3: written from its sheet
- hub-w3: repair 1
2026-11-21 23:22:12 +07:00
dotCooCoo 57dbc644a4 Window: a restored window fitted to a small work area is not held at the minimum size
When the work area is smaller than the smallest window (800 x 500
points), `place` fits the restored window to it, but the native
minimum inner size from `native_options` stayed at 800 x 500, so the
system kept the window bigger than the work area. `restore` now lowers
the minimum to the fitted size in each dimension where it is smaller,
and keeps the normal minimum where the work area has room for it.
2026-11-20 21:23:35 -08:00
BFlat 78d135c38d Merge pull request #8786 from dotCooCoo/fix/dock-monitor-work-area
Panels: give floating panels and the restored window each monitor's work area
2026-11-20 06:15:40 +07:00
dotCooCoo 93b0542438 Panels: give floating panels and the restored window each monitor's work area
The monitor list for floating panels now carries each monitor's work
area: rcWork from GetMonitorInfo on Windows, and visibleFrame on macOS,
turned into the top-left origin and physical pixels of the monitor's
rect. The work area is converted to points with the same scale and zoom
as the rect, and craft-ui uses it to decide whether a reopened panel's
title bar can be grabbed and where to move it. A work area with no width
or height is left out.

Restoring the main window now keeps it inside its monitor's work area
too, so a window saved at the top edge of a monitor with a taskbar along
its top opens below the taskbar, and a window taller or wider than the
work area is made to fit it, with room for a system title bar and
border when the window has them.

On Windows the panel list stays empty when the monitors have different
scale factors, as before, and a build without the wgpu feature reads no
work areas. Linux and the BSDs keep the whole monitor rect.
2026-11-19 13:31:56 -08:00
dotCooCoo 856e61afb4 Merge main into feat/3d-custom-bevels 2026-11-19 11:13:58 -08:00
bflatastic 6a3db0e842 Merge main into #7977 2026-11-19 21:44:26 +07:00
FredAppsandCodex cb8f5e0405 chore: unify shared craft-libs pin for HPGL and palette (#8703)
* 778: align shared dependencies on merged HPGL repair [skip ci]

* 778: record Windows-resolved unified shared lock [skip ci]

* 778: prepare unified merged palette dependency revision [skip ci]

* 778: record Windows-resolved palette revision lock [skip ci]

---------

Co-authored-by: Codex <[email protected]>
2026-11-19 09:18:36 -05:00
dotCooCoo 3fb77f58bb Merge main into feat/3d-custom-bevels 2026-11-19 04:54:39 -08:00
dotCooCoo 5d8609e881 Merge main into feat/proof-setup-save-load
# Conflicts:
#	crates/ui-egui/src/dialogs.rs
#	crates/ui-egui/src/i18n/tests.rs
2026-11-19 04:47:38 -08:00
dotCooCoo db1442db8a Merge main into feat/3d-custom-bevels 2026-11-18 23:53:53 -08:00