Files
vectorcraft/crates
BFlat 18d2939ffc Look like production: control heights, padding, gaps, type and corners (#9221)
VectorCraft's controls, padding, gaps, type and corners take production's sizes, through the framework's size layer in one place: the app's `AppSizes` block (`crates/ui-egui/src/theme.rs` `SIZES`, under `compact`). Every component follows; nothing is set per component.

| Metric | Production (source) | Before | Now |
|---|---|---|---|
| Field and spinner height (`size.control.md`) | 26 (`widgets/text.rs:266`, `widgets/numeric.rs:1251`) | 24 | 26 |
| Panel inset (`space.pad.regular`) | 10 (`dock.rs:12`) | 8 | 10 |
| Row gap (`space.gap.row`) | 5 (`theme.rs:646`) | 4 | 5 |
| Panel tab strip | 33 (`panel_docking.rs:1508`) | 28 | 33 |
| Body / label / caption type | 13 / 12.5 / 11 (`theme.rs:655-656`, `labels.rs:11`) | 12 / 11.5 / 10.5 | 13 / 12.5 / 11 |
| Field and control corners | 5 (`text.rs:283`) | 3 | 5 |
| Menus and popups | 8 (`theme.rs:627`) | 4 | 8 |
| Windows and dialogs | 10 (`theme.rs:626`) | 6 | 10 |

Compact density stays: Comfortable's 30pt controls, 38pt title bar and 12pt control corners are all larger than production's. The title bar stays 32, as production's. Push buttons now share the 26pt control height; production's text buttons were 24.

Tests:
- `panels::tests_effectedit::effect_rows_drag_to_reorder_and_into_an_item`: the drop offset goes back to production's +9.
- `chrome::tests::label_links_open_their_panels`: its Control bar fixture is wider (2400) to fit production's type; assertions unchanged.

Both are listed in the port's test map.

Checks: `vectorcraft-ui-egui` lib tests 3779 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
2026-11-24 18:39:35 +07:00
..
2026-11-19 15:24:38 +07:00