The web build is under a 24 MiB download budget. Its embedded data is
now stored deflated and inflated once at startup: the craft-fonts faces,
the translation catalogs, the Phosphor icon font and the studio
environment HDR. egui's default faces come from craft-ui's deflated
copies instead of egui's default_fonts feature, and the engine's
built-in text fonts (Ubuntu Light, Hack) come from the same copies
through text_cmds::provide_built_in_fonts. Desktop builds are unchanged.
* texturecraft-cli: follow RFC-0018 (clap, thiserror, run(args, out, err), packaged completions and man pages)
Closes#866. Part of storytold/craft-contrib#95.
* fix(cli): enable clap env, and close replacement and token gaps
- Enable clap's `env` feature so TEXTURECRAFT_CONTROL_TOKEN compiles in a
standalone `-p texturecraft-cli` release build (the FreeBSD package job).
- An inherited token no longer implies --bridge; only a command-line
--token does.
- Compare run/bake/new outputs to the path Headless::save actually writes
(it appends .tcraft when the extension is missing).
- Apply the same replacement rule to batch (save vs open), with --in-place.
- Build man-and-completions for the host when CARGO_BUILD_TARGET is set.
- Don't panic in the blank-token test when the environment already has a
token.
* fix(cli): require both roots for headless mcp
AGENTS.md rule 18 says an agent entry point must refuse to start without
--automation-read-root and --automation-write-root (the --read-root /
--write-root aliases here). Headless mcp now exits 2 unless both are
set; --bridge is unchanged. The missing-CLI_DOCS diagnostic also names
the host-example env -u CARGO_BUILD_TARGET prefix already used to build it.
Keep native Wayland when the local X server rejects setup or lacks the requested screen. Cover rejected and accepted replies, document pointer support and Flatpak access, and retain the PhotoCraft copyright and license notices.
Focused Linux desktop, titlebar and framework tests passed, along with Clippy, formatting, layers and wasm checks.
A DISPLAY left over from another session could force X11 with no X server to connect to, and
winit can't fall back to Wayland then. The title bar decision and the UI runtime read the
backend from the environment and saw Wayland while the window opened on Xwayland.
Nightly launch fix under Skylar's Exec 454: the Launcher's trailing `--` no longer reaches the file list where that applied, and a refused launch no longer blocks on macOS (the reason goes to stderr and the app exits 2).
Release the raw script text after parsing and verify that malformed path fields prevent command-side file writes. Clarify local names and separate validation from execution and saving.
The CLI integration suite passed in the CI test profile and release. CLI Clippy, formatting and dependency layering also passed.
winit 0.30 doesn't bind the Wayland tablet protocol, so on compositors that don't emulate a
pointer for the pen (KWin) the pen did nothing in the window. With a pen attached on a Wayland
desktop, and Xwayland able to run the window, the app now opens on X11, where the pen works as
the pointer. TEXTURECRAFT_NATIVE_WAYLAND=1 keeps native Wayland. Adapted from PhotoCraft.
Fixes#816.
Conflicts: apps/texturecraft/src/main.rs (kept the port's Decision/frame_guard/framework::install and main's exit hook, Nightly banner and os_window identity; dropped macOS movable), crates/ui-egui/src/lib.rs (kept both mods), crates/ui-egui/src/titlebar.rs (kept PREFIX and NIGHTLY_ICONS). Added install_headless to main's two new test harnesses.
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
- The app's dispatcher declines a Delete binding for a Backspace press (and the reverse): craft_keymap's
Matcher lets the two stand for each other, and TextureCraft binds them apart (Delete removes the layer,
Backspace a Path tool point).
- A plain Enter with nothing focused is the runtime's window submit: menus::shortcuts puts it back as an
Enter press, as it does the window's Escape, for Reset UI, project config, import resources and the
Path tool.
- Each closable dock tab has its close button, as each group header had one.
- Tests: the pointer-lock helper no longer rewrites input the app's raw_input_hook already rewrote
(egui_kittest runs the hook before every pass); tab lookups by role; next's workspace format version;
measured view edges instead of the old dock gap; a click's commit settles a frame later; tests of the
old header painting and old divider geometry deleted; rustfmt.
The runtime is installed from TextureCraft's own eframe App (framework.rs): the close question
decides in the runtime's close path, the window's Escape runs TextureCraft's Escape handlers and
the shortcut recorder, the viewport is the window's document canvas (Tab stays Hide UI), and
Ctrl+Q and F6 stay TextureCraft's. The dock is next's DockArea over the saved workspace, with the
viewport as its canvas group; the update dialogs run on a DialogHost; the strip is next's
TitleBar where the app draws the frame. The removed helpers (icon-button painter, pane split,
widget palette, shortcut dispatcher) are app-local. Every app harness installs the runtime.
Integrate origin/main at 2037b6b8 while preserving the menu and dialog changes. Resolve the color-selection rewrite, toolbar imports, app state, and upstream test cleanup conflicts.
Validation: cargo +1.100.0 check -p texturecraft -p texturecraft-ui-egui --all-targets --locked passed. Tests and screenshots were not run.
Preserve linked fills and imported alpha images, bind cached composites to their mesh, and keep delayed orb results from evicting newer previews. Avoid rendering hidden picker tiles, redundant queue scans and an extra HDR image buffer.
Correct picker cancellation, native pointer ownership, channel selection and single-parameter pattern edits. Update the Material controls guide, retain the approved Studio Small 09 attribution, and exercise the mask projection through its accessible control.
Preserve per-selection scrolling when integrating the Fill and Symmetry panels. Keep batched edits and final drag motion in the correct undo step, expire hidden editors and preview textures, and show keyboard focus on Properties controls.
Correct per-copy depth culling, UV footprints, linear-light mip filtering and memory accounting. Preserve cropped-fill coverage through placement and reload. Reject malformed decal dimensions before mutation and reuse mesh bounds within each operation.
Bound preview ray scratch with reusable row batches and clip hidden outlines before generating dashes.
Match menu labels, defaults, checkmarks, toolbar visibility and Help links. Add recent-project limits, per-mode layouts and session log actions. Make dialogs movable and resizable with consistent titles and scrollbar clearance.
Validation: release app build succeeded and preview opened. Full tests and screenshots were not rerun at the user's request.
Keep per-set export settings and case-insensitive filename deduplication. Route browser warnings and completion counts through MapExporter, and retain both the 2D view and texture export parity sections.
Combines issues #675, #676, #677, #678, #679, #682, #683, #680, #681 and #684.
- View mode combo with section titles, reference names, Other... image picker and an unlit switch
- Display Settings: environment picker grid and drop slot, reference slider ranges, background color, environment alignment, shadow computation mode and opacity
- Settings > Shortcuts with sections, Reset all to default, Delete to clear and conflict warnings; reference action names and default keys
- 2D view: rotate, snap rotate, drag zoom, F reset, wider zoom limits, UV tile grid, numbers, hover label and one mesh wireframe switch
- Log panel with sources, level colours, selection, copy and clear; the exported log keeps each entry's time, level and source
- Save as template, reference template names and a remembered template
- Window menu with Toolbars, per-mode layouts, Hide UI check mark and views per mode
Adds the reference's export settings page (lists, menus, tooltips, Cancel undoes),
per texture set overrides for template, file type, size and padding, per output map
file type and bit depth, JNG/PGM/PSD/32-bit float TIFF writers with bit depth per
file type, dithering and diffusion padding, a progress bar with Cancel Export, a
console and a tree in the list of exports, and the Output templates tab layout with
its right-click menu.
Integrate main’s shared raster codecs for desktop icons, screenshot PNGs, and mesh base-color textures. Preserve the approved Settings draft reconciliation and its regression tests.
* chore: cut over runtime raster image codecs to craft-image-codecs
* fix(formats): move inline mesh_import test into tests.rs
* fix(engine): simplify nonminimal_bool in user_brushes.rs
* fix(ui-egui): simplify nonminimal_bool in link_import.rs
* fix(formats): use as_chunks::<4>() in mesh_import for clippy
* fix: preserve mesh texture orientation and resize precision
Preserve main's procedural patterns and linked-material changes. Keep camera navigation, pending dialogs, Settings drafts, shortcut capture, and shelf contents consistent across project and UI state changes.
Mark persisted panel edits as modified. Accept existing bake settings in presets, count newly baked maps, and open failed bakes on the General log channel. Record log times and severity when each event occurs.
Reuse selected export plans, move completed JSON results into place, and avoid copying cached shelf paths or building unused preset catalogs. Add regression coverage and update the control protocol examples.
Fixes#637, #642, #649, #651, #655, #664.
- Edit > Settings with General, Shortcuts and Libraries pages, OK and Cancel (#637)
- Right-bar panels pop out with Undock; Export panel, Log tabs, Display and Shader Settings pages (#642)
- Free camera rotation, snap rotate and next/previous camera commands, Normal+height+mesh view (#649)
- Named bake presets, apply bake settings to all texture sets, bake summary toast (#651)
- Swap 3D/2D views with F4 (#655)
- Help > Release notes... and Export log...; tests for Join the community (Discord)... (#664)
Combination: one shared unavailable::NOT_AVAILABLE hint, snapped orbit uses the Settings
rotation speed and levels a free camera, Swap 3D/2D in the Viewport reference order,
symmetry test harness widened for the longer top bar, docs/parity.md regenerated.
Discard pending resize/import work and thumbnail snapshots on successful
project replacement. Reject closed-project headless and direct control work,
and prevent capture of the previous viewport immediately after Close.
Clone selected-layer metadata only while the Add effect menu is open.
Complete scoped naming, spacing, comments and regression coverage.
Validated release tests for engine, automation, UI and desktop; formatting,
workspace clippy, layering, wasm, panic tests, and offscreen/GPU regressions.
Review fixes: --control runs still start with the sample project, headless save/export/import refuse after file.close, session.inspect reports projectOpen, web drops need a project, the template button and view buttons are disabled without a project.
Removes the start window and the startup sample project. With no project open the views are empty (view picker only), Layers and Properties are empty, project-only menu items and commands are disabled, and the status bar shows only the version.
Bumps craft-ui and craft-window to craft-libs 1b34eba4 and replaces the
app's own dialog, shortcut and quit code with the shared crates.
File dialogs go through craft-dialogs and no longer stop the frame. An
action that needs a path asks for it and continues when the dialog
answers. An answer that acts on the project does nothing, with a toast,
when another project was opened meanwhile. The browser build keeps its
pickers and the startup and crash message boxes stay blocking.
Shortcuts run through craft-keymap's dispatcher, in the main window and
in floating panels. Saved shortcuts keep their stored form, and the
Keyboard shortcuts window and the shortcut labels do not change. A
shortcut on a symbol that needs Shift is recorded without Shift, and
saved shortcuts in the old form still run. A shortcut now runs only on
its exact chord: an extra Shift or Alt no longer runs a plain-key
shortcut.
A window close quits through craft-quit, and the close check runs in
logic, so closing a minimized window with unsaved changes restores it and
asks. A close during a stroke finishes the stroke and asks. The macOS app
menu comes from craft-menu. The unsaved-changes prompt goes on once its
Save dialog has saved the project, and stays open after Cancel or a failed
save.
The window frame guard on Windows and the title bar's buttons stay in the
app, since craft-libs has no code for them.
TextureCraft is updated only through the launcher, so a copy downloaded
directly is never told about a new version. The desktop app now checks
GitHub releases at start and from Help > Check for Updates, through
craft-update at craft-libs 1b34eba4. A run with --control skips the check
at start. A ready update installs when the app closes, and it waits for
unsaved changes, a stroke, a bake or a resize. The update prompt and the
modal result window hold the keyboard, so shortcuts do not act on the
project behind them. The web build is unchanged.
The UI state was saved as RON through eframe's storage, and a dock read
through a JSON value lost RON's enum variant names, so every saved layout
loaded as the default. The UI state is now saved as JSON in a store of
its own: ui.json beside eframe's settings on the desktop, a storage key on
the web. A saved state this build cannot fully read is kept beside it
before the next save, and the state earlier builds saved still loads.
A Windows release build has no console, so when the GPU could not be
set up or the app panicked, the window never showed or vanished without
a word. Such errors now also go to errors.log beside the settings and,
on the main thread, to a message box that names the log file.
Fixes#106.
The browser build threw unsaved changes away on New project, Open,
Close, Open sample project or a dropped file, and when the tab closed.
They now wait on the desktop's Save / Don't save / Cancel dialog (Save
downloads the project), and closing or reloading the tab with unsaved
changes makes the browser ask first.
The baked maps are most of a sample project's size, so a 2048 sample is
as large as a 1024 one; the usage and the control protocol now say so.
Fixes#66.
The app opens on the sample project, which left no obvious place to pick a
project. A start window now offers New project, Open, the recent projects and
Continue with the sample project, with Show at startup (also Settings >
Interface > Start window). It opens at launch in the desktop and web apps, but
not when a file is given on the command line or the app runs with --control.
Labels translated into the other nine UI languages; a UI test covers New
project, Continue and the startup setting.