Expand description
Style overrides of one platform: the rules of style! that apply to a
control kind and variant, merged for a target to draw.
Structs§
- Resolved
- A control kind and variant’s style on one platform: the rules for the kind, then those for the variant, merged in declaration order.
Functions§
- brand_
accent - The accent
[theme].brand_seedgives the native targets that take their accent from the application rather than from the system’s settings: the seed in each mode as far as it reads there, as a single color ofstyle!’saccentsis (bern_theme::native_accent).Nonewithout a seed, or whenWindowSet(accent:)chooses one at run time. - for_
platforms appasplatformsshow it: the elements whose styles set lengths there take them, outside the web a chip is the platform’s capsule, and lists in scroll views are lowered to lazy columns (bern_ir::lower_lists).- popover_
window_ theme - Opaque app-colored panels can follow the window; native material panels inherit their presenting area’s contrast (for example, white on video).
- resolve
- The style of
component(andvariant) onplatform, ifstyle!declares one. - used
- Every style the application’s controls use on
platform: the kinds, and each variant instances select, in components and in the content written directly in a window.