Skip to main content

system_appearance

Function system_appearance 

Source
pub fn system_appearance(cx: &App) -> Appearance
Expand description

Returns the current operating-system Appearance reported by GPUI on cx.

Call this before opening the first window to initialize crate::MaterialRoot::init with the active system appearance without a light-to-dark flash.