Expand description
Match the user’s Windows theme: light/dark from the registry, accent colour from DWM. Bare, flat, Windows-Forms-ish visuals; DaVinci-like layout comes from the panels, not styling.
Structs§
- Palette
- Colours for custom-painted widgets (timeline, preview, waveforms).
- Palette
Override - Settings-window override for
Palette’s hand-tuned colours (“Appearance” tab).modepicks the base (“system” = today’s Windows-derived behaviour, untouched; “light”/“dark” force the base; “custom” keeps following Windows but every field below can still override it); each colour isNoneuntil the user turns it on, so an untouchedPaletteOverridechanges nothing.
Functions§
- apply
- Apply the theme preference (“system” | “dark” | “light”) to the egui context.
- fonts 🔒
- egui’s bundled fonts with the Windows UI font (Segoe UI) in front, so text matches the OS.
- palette
- Palette for the theme currently in effect.
- palette_
with palette(ctx)layered with a user override. “system” mode (the default, everythingNone) is exactlypalette(ctx)— the round-trip the Settings window’s “Reset to system” button restores.- reg_
dword 🔒 - system_
accent - Windows accent colour (falls back to the default blue).
- visuals 🔒