factoriax.playground.ui.theme

Contents

factoriax.playground.ui.theme#

Shared color and size constants for all Factoriax UI applications.

All size values are defined at 1x scale (32 px-per-block base resolution). Call apply_scale() once at startup to multiply them by the chosen UI scale factor. Color constants are scale-independent.

factoriax.playground.ui.theme.apply_scale(factor: int) → None#

Set the UI scale factor and recompute all size constants.

Must be called once at startup before any UI rendering occurs. Color constants are not affected.

Parameters:

factor – Integer scale multiplier (1, 2, or 3).