mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
egui_web: default to light mode unless prefers-color-scheme: dark
This commit is contained in:
@@ -279,6 +279,10 @@ pub struct IntegrationInfo {
|
||||
/// If the app is running in a Web context, this returns information about the environment.
|
||||
pub web_info: Option<WebInfo>,
|
||||
|
||||
/// Does the system prefer dark mode (over light mode)?
|
||||
/// `None` means "don't know".
|
||||
pub prefer_dark_mode: Option<bool>,
|
||||
|
||||
/// Seconds of cpu usage (in seconds) of UI code on the previous frame.
|
||||
/// `None` if this is the first frame.
|
||||
pub cpu_usage: Option<f32>,
|
||||
|
||||
Reference in New Issue
Block a user