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

This commit is contained in:
daxpedda
2023-07-11 18:26:32 +02:00
committed by Kirill Chibisov
parent 4baab2d93e
commit 78b5f2feb8
3 changed files with 1 additions and 9 deletions

View File

@@ -55,12 +55,6 @@ impl WindowExtWebSys for Window {
fn canvas(&self) -> Option<HtmlCanvasElement> {
self.window.canvas()
}
fn is_dark_mode(&self) -> bool {
self.window
.inner
.queue(|inner| is_dark_mode(&inner.window).unwrap_or(false))
}
}
pub fn scale_factor(window: &web_sys::Window) -> f64 {