pub trait WindowExtWebSys {
    // Required methods
    fn canvas(&self) -> HtmlCanvasElement;
    fn is_dark_mode(&self) -> bool;
}
Available on wasm_platform only.

Required Methods§

source

fn canvas(&self) -> HtmlCanvasElement

source

fn is_dark_mode(&self) -> bool

Whether the browser reports the preferred color scheme to be “dark”.

Implementors§