Skip to main content

keep_background

Function keep_background 

Source
pub fn keep_background(window: &Window, cx: &mut App)
Expand description

Leave this window’s background where it is, whatever the palette says.

reapply_window_background reaches every open window, which is what keeps vibrancy alive across an appearance switch. A window that is opaque on purpose — a settings form the app behind it must not show through — says so here rather than being frosted by the next switch.