On Web, remove Window::is_dark_mode() (#2951)

This commit is contained in:
daxpedda 2023-07-11 18:26:32 +02:00 committed by GitHub
parent 44e2f95331
commit 5379d60e4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 9 deletions

View file

@ -38,9 +38,6 @@ use web_sys::HtmlCanvasElement;
pub trait WindowExtWebSys {
/// Only returns the canvas if called from inside the window.
fn canvas(&self) -> Option<HtmlCanvasElement>;
/// Whether the browser reports the preferred color scheme to be "dark".
fn is_dark_mode(&self) -> bool;
}
pub trait WindowBuilderExtWebSys {