Skip to main content

Module os_theme

Module os_theme 

Source
Expand description

OS theme detection โ€” reads colors directly from desktop environment configuration files and settings.

Supports GNOME, KDE, and Cinnamon on Linux. macOS and Windows return only the light/dark preference (via winit), with no color reading.

Functionsยง

query_color_scheme
Query only the OS light/dark preference (lightweight). Used by ThemeMode::FollowSystem.
query_os_theme_colors
Query full OS theme colors from desktop config files. Used by ThemeMode::Native.