pub struct InputTheme {Show 13 fields
pub background_color: Option<Rgba>,
pub placeholder_color: Option<Rgba>,
pub caret_color: Option<Rgba>,
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<BorderSpec>,
}Expand description
Single-line and multi-line text input fields.
Fields§
§background_color: Option<Rgba>Input field background fill.
placeholder_color: Option<Rgba>Placeholder text color.
caret_color: Option<Rgba>Text cursor (caret) color.
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).
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.
font: Option<FontSpec>Input text font specification.
border: Option<BorderSpec>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.
Source§impl InputTheme
impl InputTheme
Trait Implementations§
Source§impl Clone for InputTheme
impl Clone for InputTheme
Source§fn clone(&self) -> InputTheme
fn clone(&self) -> InputTheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputTheme
impl Debug for InputTheme
Source§impl Default for InputTheme
impl Default for InputTheme
Source§fn default() -> InputTheme
fn default() -> InputTheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputThemewhere
InputTheme: Default,
impl<'de> Deserialize<'de> for InputThemewhere
InputTheme: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InputTheme
impl PartialEq for InputTheme
Source§impl Serialize for InputTheme
impl Serialize for InputTheme
impl StructuralPartialEq for InputTheme
Auto Trait Implementations§
impl Freeze for InputTheme
impl RefUnwindSafe for InputTheme
impl Send for InputTheme
impl Sync for InputTheme
impl Unpin for InputTheme
impl UnsafeUnpin for InputTheme
impl UnwindSafe for InputTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more