Module theme

Source
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).
PaletteOverride
Settings-window override for Palette’s hand-tuned colours (“Appearance” tab). mode picks 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 is None until the user turns it on, so an untouched PaletteOverride changes 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, everything None) is exactly palette(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 🔒