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: Color32Glyph / label color.
bg: Color32Idle fill.
bg_hover: Color32Fill while hovered.
bg_click: Color32Fill while the pointer is down.
bg_selected: Color32Fill when crate::widgets::Button::selected is set.
border: StrokeIdle border.
border_hover: StrokeBorder while hovered.
border_click: StrokeBorder while the pointer is down.
corner_radius: CornerRadius§shadow: Shadow