pub struct TextInputTheme {
pub height: f32,
pub padding_h: f32,
pub radius: f32,
pub font_size: f32,
pub border_color: Color,
pub border_width: f32,
pub focus_color: Color,
pub text_color: Color,
pub placeholder_color: Color,
}Expand description
Visual parameters for the TextInput widget.
Controls height, horizontal padding, corner radius, font size, and colors for border, focus ring, text, and placeholder.
Fields§
§height: f32§padding_h: f32§radius: f32§font_size: f32§border_color: Color§border_width: f32§focus_color: Color§text_color: Color§placeholder_color: ColorImplementations§
Source§impl TextInputTheme
impl TextInputTheme
pub fn from_tokens(tokens: &Tokens) -> Self
Trait Implementations§
Source§impl Clone for TextInputTheme
impl Clone for TextInputTheme
Source§fn clone(&self) -> TextInputTheme
fn clone(&self) -> TextInputTheme
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 TextInputTheme
impl Debug for TextInputTheme
Source§impl<'de> Deserialize<'de> for TextInputTheme
impl<'de> Deserialize<'de> for TextInputTheme
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 TextInputTheme
impl PartialEq for TextInputTheme
Source§impl Serialize for TextInputTheme
impl Serialize for TextInputTheme
impl StructuralPartialEq for TextInputTheme
Auto Trait Implementations§
impl Freeze for TextInputTheme
impl RefUnwindSafe for TextInputTheme
impl Send for TextInputTheme
impl Sync for TextInputTheme
impl Unpin for TextInputTheme
impl UnsafeUnpin for TextInputTheme
impl UnwindSafe for TextInputTheme
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