mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-30 21:16:52 -06:00
apply_visuals pinned egui's theme preference to Light or Dark on every apply. egui syncs that to the native window (ViewportCommand::SetTheme), winit then gives the NSWindow an explicit Aqua/DarkAqua appearance, and a window with its own appearance no longer receives the system's ThemeChanged events, so Sync with System froze on the first frame's appearance. Our visuals now go into both of egui's styles (light and dark), and the preference is System while the appearance mode is Sync with System, so the window keeps following the OS; fixed Light / Dark modes still pin it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QiAJeFttZp83Fh7YuzAR5f