Skip to content

egui: Event::SystemTheme - #39

Open
aiongg wants to merge 2 commits into
storytold:craft/0.37-pinfrom
aiongg:next-system-theme
Open

aiongg wants to merge 2 commits into
storytold:craft/0.37-pinfrom
aiongg:next-system-theme

Conversation

@aiongg

@aiongg aiongg commented Nov 14, 2026

Copy link
Copy Markdown
  • Event::SystemTheme: reports the OS's light or dark preference when the integration first knows it and on each change (egui-winit and eframe web).
  • A cargo fmt commit for the eframe web lines.

Behaviour changes

None for apps that ignore the event.

Tests

None for this item.

PATCHES.md: E33.

These commits are on next, which craft-libs next pins.

@aiongg aiongg added the egui label Nov 14, 2026
…en the integration first knows it and on each change

egui-winit sends it from State::new and on WindowEvent::ThemeChanged; eframe web
at start and on the prefers-color-scheme change. RawInput::system_theme keeps
the same value; the event is the change notice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant