Skip to main content

visuals

Function visuals 

Source
pub fn visuals(palette: &Palette) -> Visuals
Expand description

Build egui’s Visuals from palette so the chrome egui draws itself — menus, buttons, checkboxes, separators and the in-place rename TextEdit — matches the canvas. Starts from the light or dark preset (per the scheme’s own luminance) and overrides the colors that read against our background.