ltk::types

Function set_design_reference

Source
pub fn set_design_reference(reference_vmin: f32)
Expand description

Set the reference vmin width that Length::dp interprets px against. Call once at startup (e.g. before crate::run) to align the design scale to the surface mock-up the app was designed for.