#[non_exhaustive]pub struct Style {Show 18 fields
pub scale: UiScale,
pub padding: f32,
pub spacing: f32,
pub indent: f32,
pub control_share: f32,
pub control_width: f32,
pub scrollbar: f32,
pub min_size: Vec2,
pub panel: Color,
pub title: Color,
pub title_front: Color,
pub widget: Color,
pub hot: Color,
pub active: Color,
pub accent: Color,
pub text: Color,
pub dim: Color,
pub selection: Color,
}Expand description
The debug UI’s look. Sizes are in UI units: a UI unit is a pixel of the font.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scale: UiScaleThe UI’s scale: the settings’ UI scale, a free one, by default the
output’s own pixels (UiScale::Free(1.0)).
padding: f32Around a row’s text, above and below, and inside a window’s edges.
spacing: f32Between two rows, or two widgets of a row.
indent: f32How far a tree node’s children are moved in.
How much of a row a control takes, its label after it.
control_width: f32How wide a labelled control is in a row of several
(Ui::horizontal).
scrollbar: f32How wide the scrollbar is, and how large the resize grip.
min_size: Vec2The smallest a window may be made.
panel: ColorA window’s body.
title: ColorA window’s title bar.
title_front: ColorThe title bar of the window in front.
widget: ColorA control at rest.
hot: ColorA control under the pointer.
active: ColorA control held.
accent: ColorA checkbox’s mark, a slider’s handle, a plot’s line.
text: ColorText.
dim: ColorA line, the scrollbar’s track.
selection: ColorSelected text.