Egui::DefaultTheme
Class methods
build(name : String, *, dark : Bool) : Theme
Assemble a full theme from the defaults below. Public so apps can
derive custom presets (build("ocean", dark: false) + tweaks).
build(name : String, *, dark : Bool, &palette : Visuals -> Nil) : Theme
Same, but with a custom palette: the block runs on the fresh theme's Visuals BETWEEN the base palette and the element rules, so the class rules (button/sidebar/tabs) are derived from the custom colors too — the way to build whole presets:
DefaultTheme.build("winxp", dark: false) do |v| v.window_fill = Color32.rgb(236, 233, 216) v.selection_fill = Color32.rgb(49, 106, 197) end
dark
Sourcelight
Source