1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

egui_web: default to light mode unless prefers-color-scheme: dark

This commit is contained in:
Emil Ernerfeldt
2021-06-07 20:56:18 +02:00
parent 44b573f6a6
commit 62f58a3b05
8 changed files with 54 additions and 16 deletions

View File

@@ -14,9 +14,17 @@
}
body {
/* Background color for what is not covered by the egui canvas,
/* Light mode background color for what is not covered by the egui canvas,
or where the egui canvas is translucent. */
background: #404040;
background: #909090;
}
@media (prefers-color-scheme: dark) {
body {
/* Dark mode background color for what is not covered by the egui canvas,
or where the egui canvas is translucent. */
background: #404040;
}
}
/* Allow canvas to fill entire web page: */