mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-30 13:26:54 -06:00
main split `right.rs`, `typography.rs` and `layout_panel.rs` into `panels/`
(the right panel's sections in `panels/right/{paints,stroke,effects,inspect,menu}`,
the Type section in `panels/typography/`). This merges that refactor with the
panel grid, so the grid's numbers now live where the code does:
- rows inset 16 from the left and 8 from the right (`block`, `sublabels`);
- two 88 pt columns with 8 pt gutters and a 24 pt button column at a row's end
(`col_width`, the stroke's align/weight pair, the effect and grid rows);
- a row's two buttons are one group on the right edge, 24 each, 4 apart
(`widgets::tight_end` in the paint, effect and grid rows);
- section headers: the last icon ends 8 pt from the edge, icons 28 apart;
- the right panel's frame keeps no stroke (a stroke counts as margin and took
1 pt off each side); its edge is drawn in `right_panel`.
Widget text stays at 11 pt, the size the app we match uses: the merge keeps
main's type throughout (section titles 11 pt, now regular; captions 10 pt) and
changes geometry only. The Type section's size field follows the new column.
`cargo test -p figcraft-ui-egui`: 814 + 8 + 1 pass; fmt and clippy clean.