pub fn from_system() -> Result<(Theme, ResolvedThemeVariant, bool)>
Detect the OS theme and convert it to an iced Theme in one call.
Theme
Returns the iced theme, the resolved variant, and whether the system is in dark mode. The is_dark flag comes from the OS preference, not from background color analysis.
is_dark
Returns an error if the platform theme cannot be read.