Theme Controller
A controller for managing the current color scheme of the Miuix theme.
Parameters
The mode of the color scheme, which can be ColorSchemeMode.System, ColorSchemeMode.Light, ColorSchemeMode.Dark, ColorSchemeMode.MonetSystem, ColorSchemeMode.MonetLight, or ColorSchemeMode.MonetDark.
The color scheme to use when the light appearance is active. This is used when the colorSchemeMode is ColorSchemeMode.Light or when it is ColorSchemeMode.System and a light theme is selected.
The color scheme to use when the dark appearance is active. This is used when the colorSchemeMode is ColorSchemeMode.Dark or when it is ColorSchemeMode.System and a dark theme is selected.
The key color for generating dynamic color schemes. This is used when the colorSchemeMode is set to a Monet mode.
The requested Material color specification to use when generating dynamic color schemes in Monet modes. When ThemeColorSpec.Spec2025 is requested, it is only honored for palette styles whose underlying implementation supports the 2025 spec; otherwise, the effective spec is downgraded to ThemeColorSpec.Spec2021 at runtime by colorsFromSeed.
The palette style to use when generating dynamic color schemes. The selected style determines whether ThemeColorSpec.Spec2025 can be applied; if it is not supported, the effective colorSpec will fall back to ThemeColorSpec.Spec2021.
Whether the system is in dark mode. This is used when the colorSchemeMode is set to a System or MonetSystem mode and the dark mode is not explicitly specified.