mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 21:00:03 -04:00
Remove dark-light dependency (#2929)
* Remove dark-light dependency Since https://github.com/emilk/egui/pull/2750 we now get what we need straight from `winit`. * fix warning * Docstring formatting * fix typo in check.sh
This commit is contained in:
@@ -1450,9 +1450,8 @@ fn system_theme(window: &winit::window::Window, options: &NativeOptions) -> Opti
|
||||
}
|
||||
|
||||
// Winit only reads the system theme on macOS and Windows.
|
||||
// On Linux we have to fall back on dark-light (if enabled).
|
||||
// See: https://github.com/rust-windowing/winit/issues/1549
|
||||
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
|
||||
fn system_theme(_window: &winit::window::Window, options: &NativeOptions) -> Option<crate::Theme> {
|
||||
options.system_theme()
|
||||
fn system_theme(_window: &winit::window::Window, _options: &NativeOptions) -> Option<crate::Theme> {
|
||||
None
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user