Function resolve_theme_layers
pub fn resolve_theme_layers(stack: &ThemeLayerStack) -> ThemeExpand description
Resolve the stack. Order, lowest first:
- built-in defaults (
Preset::Dark) - distribution defaults, when
DistributionDefaults::validateaccepts them - the user’s theme, except the roles the distribution pins
- the window (
ThemeLayerStack::window): its workspace’s temperature, which moves the neutral hue only and shows nothing on a palette with chroma 0, and the person’s colour - accessibility, when
AccessibilityLayer::materializeaccepts it: the high-contrast palette of the theme’s polarity (high contrast or forced colours), clamped text and UI scale, reduced motion, reduced transparency, thick caret, the Hyperlegible face, distinct similar letters. A rejected payload leaves the theme unchanged by this layer