Skip to main content

Module style

Module style 

Source
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_seed gives 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 of style!’s accents is (bern_theme::native_accent). None without a seed, or when WindowSet(accent:) chooses one at run time.
for_platforms
app as platforms show 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 (and variant) on platform, if style! 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.