mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-25 08:50:46 +01:00
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>