Skip to main content

parse_linux_theme_hint

Function parse_linux_theme_hint 

Source
pub fn parse_linux_theme_hint(raw_hint: &str) -> Option<ThemeMode>
Expand description

Parses a Linux desktop theme string (such as GTK_THEME, gsettings color-scheme, or gtk-theme) into a ThemeMode.

§Arguments

  • &str - Raw theme hint string.

§Returns

  • Option<ThemeMode> - Detected Dark or Light preference when recognized.