As before the move to the craft-ui runtime, a press in a floating panel's
own window runs the command it runs in the main window. Where a layout
types a symbol with Shift, the binding with Shift wins in both.
As before the move to the craft-ui dock, showing a panel from the Window
menu or another command raises the floating window that holds it, once.
Docked panels only become the front tab.
The 3D and 2D views are declared as host canvases with the ids of their own widgets, so egui keeps the focus Tab gives them.
A bare Tab on a focused view hides and shows the UI through the runtime's chrome toggle, as with nothing focused; Shift+Tab moves on from it.
A focused view leaves the keyboard to the shortcuts, the held keys and the Path tool.
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.
A directory-scoped batch previously reused one .export.{pid}.{attempt}.tmp
namespace of 256 names for every staging file and backup. Exports larger
than that limit, or overwrites of about half as many existing files, failed
even when every output path was valid. Each allocation now gets its own
short identifier, while the collision retries stay within that namespace.
Stage capability-scoped temps in the output root so the mid-batch
escape test can actually install a parent symlink, and refuse
export folders that are symbolic links so two names cannot resolve
to the same file.
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 Presets row gets a Template actions button (three dots) that opens a menu with Import and
Export of the selected template. It is focusable, opens with Import focused and closes after an
action, so no pointer is needed. The row's right-click menu keeps both entries.
An inverted empty swatch names the colour it writes after inversion, and the disabled
Separate R, G and B item says R, G and B must read the same map and be inverted alike.
- 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.
Conflicted files and their resolution:
- crates/ui-egui/src/export_window.rs: main (#794, 039b4548) made the
Export window resizable, laid it out bottom-up and put the tab body in
a clipped child so an overflow cannot widen the window each frame; it
also wraps both settings pages in one scroll area, sizes the texture
set list from the space left and retitles the window "Export Textures".
All of that is kept. This branch's layout is kept on top of it: boxed
tab buttons, the naming pattern on OUTPUT TEMPLATES, equal-width footer
buttons, Reset all only on SETTINGS, no count/save/export on OUTPUT
TEMPLATES, its tooltips and the bigger list rows. The window opens at
this branch's reference size (capped by the screen) as its default
size instead of a fixed size, so it stays resizable; egui counts a
window's size with its frame and title bar, and main's layout now fits
the content inside it, so the frame margins and title bar height are
added to the reference content size (without that, the PR's
the_window_has_the_reference_size test measured 672 instead of about
740 points of content). set_list no
longer takes a body height (main's available-height sizing replaces
it); the PR-only "exp_global_scroll" area is replaced by main's
"export_settings_page" one, which also covers a texture set's page.
- crates/ui-egui/src/export_templates.rs: this branch's reworked
OUTPUT TEMPLATES tab (map lists, output rows, constants) is kept. Main's
fix for cards growing wider one after another is carried over to the
output rows: each row is laid out in the width the column had before
the first row. Main's INPUTS_WIDTH/LIST_WIDTH/CARD_MARGIN constants
belonged to the old card layout and are dropped; main's dialog-based
question window merged cleanly.
- crates/ui-egui/src/mesh_export_options.rs: main's new
windows::dialog(ctx, ...) signature with this branch's fixed width.
No test was changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The export dock, Mesh Export Options and Export textures window keep the
reference's layout, but their texts are now our own. Where main had a
TextureCraft text for a control (footer tooltips, console lines, override
menu, reset button, dilation hint, naming pattern info), it is back. New
texts describe what TextureCraft does: the USD tooltip says the mesh is
always written, the Mesh Export Options info tooltips say the mesh is
always triangles and normals are not recomputed. The drop popup asks
"Which part of <map>?", empty swatches read "Empty (writes black)", new
rows are named after their layout (Gray, RGB, RGBA), and the map panes
use TextureCraft's channel, bake and converted map names with OpenPBR
parameter names for the inputs TextureCraft lacks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Create named new rows just "Grayscale", "RGB" or "RGB Alpha", so every
texture set of a multi-set export planned the same file and the export
was refused for the name clash. New rows now start with
"$mesh_$textureSet_" (as the old "$mesh_$textureSet_Output" default
did), followed by the reference's row name. The output_templates test
that pinned the bare "RGB" checks the suffix and the set token instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a short screen the settings pushed the footer (Cancel, Export) out of
the fixed-size window, and at an 800-point-wide screen the 728-point
window cut off the right end of the value lists. The page now sits in a
scroll area (both directions), as the texture set list already does.
The new test at 800x480 fails without it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The window's drawn tabs, the Global settings row and the console's
hide/resize strip take focus by Tab but drew nothing for it. They now
draw a 2-point outline in the strong text colour when focused, apart
from the accent of the selected tab or row and the hover fill.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>