class

Egui::Visuals

Inherits Reference < Object

Constructors

Instance methods

button_active
Source
button_active=(button_active : Color32)
Source
button_fill(hovered : Bool, active : Bool) : Color32

egui Visuals::widget_visuals(interaction) — pick by state.

Source
button_hovered
Source
button_hovered=(button_hovered : Color32)
Source
button_stroke
Source
button_stroke=(button_stroke : Color32)
Source
button_weak

Button states (egui WidgetVisuals): weak / hovered / active.

Source
button_weak=(button_weak : Color32)

Button states (egui WidgetVisuals): weak / hovered / active.

Source
clone

Deep copy (all fields are value types) — see Spacing#clone.

Source
dark

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.

Source
dark=(dark : Bool)

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.

Source
fade_color(color : Color32, factor : Float64 = 0.6) : Color32

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.

Source
interact_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.

Source
interact_cursor=(interact_cursor : CursorIcon | Nil)

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.

Source
panel_fill
Source
panel_fill=(panel_fill : Color32)
Source
scrollbar_arrow
Source
scrollbar_arrow=(scrollbar_arrow : Color32 | Nil)
Source
scrollbar_fill

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).

Source
scrollbar_fill=(scrollbar_fill : Color32 | Nil)

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).

Source
scrollbar_track
Source
scrollbar_track=(scrollbar_track : Color32 | Nil)
Source
selection_fill

Selection/accent fill (upstream Visuals::selection.bg_fill) — progress bar fill, slider handle, hyperlinks.

Source
selection_fill=(selection_fill : Color32)

Selection/accent fill (upstream Visuals::selection.bg_fill) — progress bar fill, slider handle, hyperlinks.

Source
separator_color
Source
separator_color=(separator_color : Color32)
Source
strong_color(color : Color32, factor : Float64 = 0.2) : Color32

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.

Source
text_color
Source
text_color=(text_color : Color32)
Source
title_bar_fill

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.

Source
title_bar_fill=(title_bar_fill : Color32)

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.

Source
title_color
Source
title_color=(title_color : Color32)
Source
window_fill
Source
window_fill=(window_fill : Color32)
Source
window_rounding

Corner rounding of a floating window's frame.

Source
window_rounding=(window_rounding : Float64)

Corner rounding of a floating window's frame.

Source
window_stroke
Source
window_stroke=(window_stroke : Color32)
Source