mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Place dark-light behind a feature gate in eframe and egui_glow (#1437)
This commit is contained in:
@@ -53,6 +53,8 @@ screen_reader = ["egui-winit/screen_reader"]
|
||||
# if you want to use glow painter on web disable this feature.
|
||||
winit = ["egui-winit", "glutin"]
|
||||
|
||||
dark-light = ["egui-winit/dark-light"] # detect dark mode system preference
|
||||
|
||||
|
||||
[dependencies]
|
||||
egui = { version = "0.17.0", path = "../egui", default-features = false, features = [
|
||||
@@ -67,7 +69,6 @@ tracing = "0.1"
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
egui-winit = { version = "0.17.0", path = "../egui-winit", optional = true, default-features = false, features = [
|
||||
"dark-light",
|
||||
"epi_backend",
|
||||
] }
|
||||
glutin = { version = "0.28.0", optional = true }
|
||||
|
||||
Reference in New Issue
Block a user