Skip to main content

DEFAULT_CLEAR

Constant DEFAULT_CLEAR 

Source
pub const DEFAULT_CLEAR: Color;
Expand description

Fallback GPU clear color painted before the very first frame - what a user sees for an instant during window creation, and behind any pixel the app’s tree doesn’t cover. This is the single Rust-side source of truth for that fallback; lumen_runtime::run::RunOptions::clear (the value every launch path reaches - CLI, FFI, SDK) defaults to it too, so the two never drift apart the way they used to.

A resolved --lumen-window-bg custom property (from the app’s own :root or its active skin) overrides this at build time - see lumen_runtime::run::app_build::build_app. This constant is only what remains when no layer defines that token, or a caller constructs WindowOptions directly without going through RunOptions at all.