in native/desktop-win32/src/win32/appearance.rs [36:46]
fn cached_ui_settings() -> WinResult<UISettings> {
static CACHED_UI_SETTINGS: std::sync::OnceLock<UISettings> = std::sync::OnceLock::new();
if let Some(ui_settings) = CACHED_UI_SETTINGS.get() {
Ok(ui_settings.clone())
} else {
let ui_settings = UISettings::new()?;
let cached = CACHED_UI_SETTINGS.get_or_init(|| ui_settings);
Ok(cached.clone())
}
}