#[non_exhaustive]pub struct ResolvedInputTheme {Show 16 fields
pub background_color: Rgba,
pub placeholder_color: Rgba,
pub caret_color: Rgba,
pub caret_blink_on: Option<u32>,
pub caret_blink_off: Option<u32>,
pub caret_blink_timeout: Option<u32>,
pub selection_background: Rgba,
pub selection_text_color: Rgba,
pub min_height: f32,
pub disabled_opacity: f32,
pub disabled_text_color: Rgba,
pub hover_border_color: Option<Rgba>,
pub focus_border_color: Option<Rgba>,
pub disabled_background: Option<Rgba>,
pub font: ResolvedFontSpec,
pub border: ResolvedWidgetBorder,
}Expand description
Single-line and multi-line text input fields: everything of a multi-line
field but its padding, which is TextAreaTheme’s.
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.background_color: RgbaInput field background fill.
placeholder_color: RgbaPlaceholder text color.
caret_color: RgbaText cursor (caret) color.
caret_blink_on: Option<u32>How long the caret is shown in each blink cycle, in milliseconds, 1 or
more. A blink is stated whole, with
caret_blink_off, or not at all; None
where the theme states none, and the toolkit’s own blink applies
(docs/platform-facts.md §2.4).
caret_blink_off: Option<u32>How long the caret is hidden in each blink cycle, in milliseconds; 0
means the caret does not blink, whatever
caret_blink_on is. None where the theme
states no blink (docs/platform-facts.md §2.4).
caret_blink_timeout: Option<u32>How long after the last input the caret stops blinking, shown, in
milliseconds, 1 or more; stated only beside caret_blink_off. None where the
platform’s caret never stops (KDE, Material, iOS) or no source gives
its time-out (Windows, macOS) (docs/platform-facts.md §2.4).
selection_background: RgbaText selection highlight color.
selection_text_color: RgbaText color inside the selection highlight.
min_height: f32Minimum field height in logical pixels.
disabled_opacity: f32Opacity multiplier when disabled (0.0-1.0), applied to the whole
widget on top of its disabled colours (see
ThemeDefaults::disabled_opacity).
disabled_text_color: RgbaInput text color when disabled.
hover_border_color: Option<Rgba>Border color when the input is hovered.
focus_border_color: Option<Rgba>Border color when the input has focus.
disabled_background: Option<Rgba>Input background when disabled; None, the enabled background.
font: ResolvedFontSpecInput text font specification.
border: ResolvedWidgetBorderInput border specification.