pub struct InputTheme {Show 16 fields
pub background_color: Option<Rgba>,
pub placeholder_color: Option<Rgba>,
pub caret_color: Option<Rgba>,
pub caret_blink_on: Option<u32>,
pub caret_blink_off: Option<u32>,
pub caret_blink_timeout: Option<u32>,
pub selection_background: Option<Rgba>,
pub selection_text_color: Option<Rgba>,
pub min_height: Option<f32>,
pub disabled_opacity: Option<f32>,
pub disabled_text_color: Option<Rgba>,
pub hover_border_color: Option<Rgba>,
pub focus_border_color: Option<Rgba>,
pub disabled_background: Option<Rgba>,
pub font: Option<FontSpec>,
pub border: Option<WidgetBorderSpec>,
}Expand description
Single-line and multi-line text input fields: everything of a multi-line
field but its padding, which is TextAreaTheme’s.
Fields§
§background_color: Option<Rgba>Input field background fill.
placeholder_color: Option<Rgba>Placeholder text color.
caret_color: Option<Rgba>Text 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: Option<Rgba>Text selection highlight color.
selection_text_color: Option<Rgba>Text color inside the selection highlight.
min_height: Option<f32>Minimum field height in logical pixels.
disabled_opacity: Option<f32>Opacity 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: Option<Rgba>Input 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: Option<FontSpec>Input text font specification.
border: Option<WidgetBorderSpec>Input border specification.
Implementations§
Source§impl InputTheme
impl InputTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.