Repository navigation
feat(ui): the Publication Layout Wizard draws each style's outline (#2850) - #3106
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| const STEP_HEIGHT: f32 = 320.0; | ||
| /// The height every step takes: the style step's six styles, their outlines and descriptions, | ||
| /// with room for the rounding a high-density screen adds to each line. | ||
| const STEP_HEIGHT: f32 = 360.0; |
There was a problem hiding this comment.
Low-confidence quality note, not a defect. The description now sits in a ui.vertical beside the 34 pt outline, so its wrap width is narrower than the old indented label. The 360 pt step height is sized for the English text. Longer translations may wrap to more lines and make the style step scroll, which the existing scroll test does not cover. A translated-catalog check, or a note in the PR on how much room the longest locale needs, would settle it.
Category: quality
Code reviewBugs: None found. I traced the accent logic against the old re-seed rule and the two are equivalent:
Security: None. The change is pure egui drawing and adds no input handling, I/O or commands. Performance: None significant. Each frame builds six small shape vectors and a few Quality:
AGENTS.md: No violations found.
Twins checked: The change touches no read routes, overlay tools, Prior reviews: The thread list is empty, so there were no earlier concerns to skip. Change sizeCompared: the whole PR against main (merge base ac78a68 to PR head 20681a0).
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Summary
The Publication Layout Wizard's style step draws each style's outline beside its name and description: where its title, map and footer go, and the column or panel a style keeps for its locator and legend, on a portrait A4 page. The outlines follow
layout.publication's arrangement of each style; a locator or legend over the map isn't drawn, as its corner follows the data. This is the second part of #2850.Draft::chosen_accent, used by the existing rule that re-seeds it on a style change).Testing
publicationwizard/style.rs, written first and seen failing: each style has its own outline inside its page, with its title, accent marks and cards where its sheet has them, every filled mark at least a point thick; the fallback; the accent drawn on the style step with none picked, one picked and a seeded one; a click on an outline; Tab never stopping at one; its name in logical order in a right-to-left language; the picked frame not cut by the scroll area.cargo xtask schema --checkgreen.layout.publicationmakes in each style (ui_shot, A4 portrait, World Atlas), and the style step shot before and after.UI evidence
Style step, before (left) and after (right):
Poster picked:
Related issue
Closes #2850
Summary by CodeRabbit
New Features
Documentation