Skip to main content

current

Function current 

Source
pub fn current(ctx: &Context) -> Theme
Expand description

The tokens of the theme last applied with apply_id (or apply_theme).

Components use it for the roles egui’s visuals do not carry, such as success. Falls back to GitHub Light or Dark, following the current visuals, when no theme was applied.