Struct eframe::WebOptions
source · pub struct WebOptions {
pub follow_system_theme: bool,
pub default_theme: Theme,
pub webgl_context_option: WebGlContextOption,
pub wgpu_options: WgpuConfiguration,
}Expand description
Options when using eframe in a web page.
Fields§
§follow_system_theme: boolTry to detect and follow the system preferred setting for dark vs light mode.
See also Self::default_theme.
Default: true.
default_theme: ThemeWhich theme to use in case Self::follow_system_theme is false
or system theme detection fails.
Default: Theme::Dark.
webgl_context_option: WebGlContextOptionWhich version of WebGl context to select
Default: WebGlContextOption::BestFirst.
wgpu_options: WgpuConfigurationConfigures wgpu instance/device/adapter/surface creation and renderloop.