Skip to main content

Module GetColorScheme

Module GetColorScheme 

Source
Expand description

Wire method: nativeHost:getColorScheme. Returns { dark, highContrast }. Dark-mode probe covers macOS AppleInterfaceStyle, Windows AppsUseLightTheme, and a Linux ladder (GTK color-scheme → GTK theme name → KDE_COLOR_SCHEME → xfconf). High-contrast probe is Windows HighContrast/Flags and the GNOME a11y high-contrast key; other OSes return false.

Functions§

NativeGetColorScheme
detect_dark_mode 🔒