mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
egui-winit: Automatically detect and apply dark or light mode (#1045)
This commit is contained in:
@@ -30,6 +30,7 @@ winit = "0.26.1"
|
||||
epi = { version = "0.16.0", path = "../epi", optional = true }
|
||||
|
||||
copypasta = { version = "0.7", optional = true }
|
||||
dark-light = { version = "0.2.1", optional = true } # detect dark mode system preference
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
webbrowser = { version = "0.5", optional = true }
|
||||
|
||||
@@ -37,7 +38,7 @@ webbrowser = { version = "0.5", optional = true }
|
||||
tts = { version = "0.19", optional = true }
|
||||
|
||||
[features]
|
||||
default = ["clipboard", "links"]
|
||||
default = ["clipboard", "dark-light", "links"]
|
||||
|
||||
# enable cut/copy/paste to OS clipboard.
|
||||
# if disabled a clipboard will be simulated so you can still copy/paste within the egui app.
|
||||
|
||||
Reference in New Issue
Block a user