Egui::Visuals
Inherits Reference < Object
Constructors
Instance methods
egui Visuals::widget_visuals(interaction) — pick by state.
Button states (egui WidgetVisuals): weak / hovered / active.
Which palette family this Visuals belongs to — drives #fade_color
(weaker variants darken on dark themes, lighten on light ones).
Set by the Theme presets.
Which palette family this Visuals belongs to — drives #fade_color
(weaker variants darken on dark themes, lighten on light ones).
Set by the Theme presets.
egui Visuals::fade_out_color: a "weaker" variant of color.
Dark themes darken (gamma multiply), light themes lighten (blend
towards white) — so weak text/hints stay readable on both. The
hardcoded mul_color(...) calls inverted on light themes.
Cursor shown over hovered clickable widgets — the CSS
cursor: pointer style (upstream Visuals::interact_cursor,
which defaults to None there). Set to nil for the platform
default cursor.
Cursor shown over hovered clickable widgets — the CSS
cursor: pointer style (upstream Visuals::interact_cursor,
which defaults to None there). Set to nil for the platform
default cursor.
Scrim behind a modal dialog (Context#modal) — dim over the
layers below; light themes use a weaker one.
Scrim behind a modal dialog (Context#modal) — dim over the
layers below; light themes use a weaker one.
Classic scrollbar override (nil = the button visuals above): apps
that paint the whole Win95/XP bar one system color set these —
scrollbar_fill is the thumb and arrow-button fill (replacing
button_weak/button_fill), scrollbar_arrow the arrow glyph color
(nil → text_color, separator_color when disabled),
scrollbar_track the groove behind the thumb (nil → scrollbar_fill
/ button_weak — a contrasting track keeps the thumb readable).
Classic scrollbar override (nil = the button visuals above): apps
that paint the whole Win95/XP bar one system color set these —
scrollbar_fill is the thumb and arrow-button fill (replacing
button_weak/button_fill), scrollbar_arrow the arrow glyph color
(nil → text_color, separator_color when disabled),
scrollbar_track the groove behind the thumb (nil → scrollbar_fill
/ button_weak — a contrasting track keeps the thumb readable).
Selection/accent fill (upstream Visuals::selection.bg_fill) —
progress bar fill, slider handle, hyperlinks.
Selection/accent fill (upstream Visuals::selection.bg_fill) —
progress bar fill, slider handle, hyperlinks.
The hover counterpart of #fade_color: a "stronger" variant of
color — dark themes lighten (blend towards white), light themes
darken, so a hovered accent (link color, …) reads stronger on
both, the way #fade_color reads weaker.
Title bar fill (Context#window's drag strip) — defaults to
window_fill (a flat window); classic presets like Win95 paint a
navy bar with a white title.
Title bar fill (Context#window's drag strip) — defaults to
window_fill (a flat window); classic presets like Win95 paint a
navy bar with a white title.