pub type OsTheme = StyleManager;👎Deprecated since 0.0.1:
OsTheme was renamed to StyleManager (W4.6). Read style_manager.effective_dark in place of os_theme.is_dark.
Expand description
Backwards-compatible alias for the pre-W4.6 OsTheme resource.
New code should use StyleManager directly; the alias keeps
existing call sites that still read or write is_dark compiling
through the Deref / DerefMut
shim on the legacy wrapper.
Aliased Type§
pub struct OsTheme {
pub scheme: ColorScheme,
pub system_dark: bool,
pub effective_dark: bool,
}Fields§
§scheme: ColorSchemeApplication-side intent. Default = follow OS.
system_dark: boolLast-seen OS preference. Defaults to false (light) until the
backend or portal listener writes through.
effective_dark: boolComputed result of scheme + system_dark. Read by every theme
consumer; written by Self::recompute from inside the setters.