Skip to main content

LabelVisuals

Type Alias LabelVisuals 

Source
pub type LabelVisuals = ButtonVisuals;
Expand description

Alias: labels use the same visuals as buttons.

Aliased Type§

pub struct LabelVisuals {
    pub text: Color32,
    pub bg: Color32,
    pub bg_hover: Color32,
    pub bg_click: Color32,
    pub bg_selected: Color32,
    pub border: Stroke,
    pub border_hover: Stroke,
    pub border_click: Stroke,
    pub corner_radius: CornerRadius,
    pub shadow: Shadow,
}

Fields§

§text: Color32

Glyph / label color.

§bg: Color32

Idle fill.

§bg_hover: Color32

Fill while hovered.

§bg_click: Color32

Fill while the pointer is down.

§bg_selected: Color32§border: Stroke

Idle border.

§border_hover: Stroke

Border while hovered.

§border_click: Stroke

Border while the pointer is down.

§corner_radius: CornerRadius§shadow: Shadow