mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-19 00:27:49 +00:00
In a right-to-left UI language the rows inside the panels run from the right as well: the shared Design panel row (right::block), section headers, tight_end, sub-labels, checkboxes, radios, disclosures and the selection header, and the layers and pages lists (indent, disclosure, icon and name from the right, eye and padlock on the left). Names and rename fields align to their start. Hand-placed layouts stay written left to right and are mirrored inside their row with widgets::flip_x / flip_rect, so an English window takes the same code path unchanged. Inside a control nothing turns round. A layers list made wider than the panel by a long name (#1904) mirrors across its whole width, so it starts scrolled to its right end, where its rows start (stick_to_right, with a scroll state per direction so a language switch doesn't leave it at the left end). The Assets panel, version history, Dev Mode's layouts, the colour picker, the toolbar, the tab bar and the home screen stay left to right. Gap 5 had two copies of its "Missing" paragraph, left by merges: one now.