1
0
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:
Emil Ernerfeldt
2022-02-02 17:09:36 +01:00
committed by GitHub
parent 270c08a030
commit c3be566574
8 changed files with 601 additions and 15 deletions

View File

@@ -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.