mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
On Web, remove Window::is_dark_mode() (#2951)
This commit is contained in:
committed by
Kirill Chibisov
parent
4baab2d93e
commit
78b5f2feb8
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user