pub struct InputStyle {
pub focused_border: Color,
pub unfocused_border: Color,
pub disabled_border: Color,
pub text_fg: Color,
pub cursor_fg: Color,
pub placeholder_fg: Color,
}Expand description
Configuration for input appearance.
Fields§
§focused_border: ColorBorder color when focused.
unfocused_border: ColorBorder color when unfocused.
disabled_border: ColorBorder color when disabled.
text_fg: ColorText foreground color.
cursor_fg: ColorCursor color.
placeholder_fg: ColorPlaceholder text color.
Implementations§
Source§impl InputStyle
impl InputStyle
Sourcepub fn focused_border(self, color: Color) -> Self
pub fn focused_border(self, color: Color) -> Self
Set the focused border color.
Sourcepub fn unfocused_border(self, color: Color) -> Self
pub fn unfocused_border(self, color: Color) -> Self
Set the unfocused border color.
Sourcepub fn placeholder_fg(self, color: Color) -> Self
pub fn placeholder_fg(self, color: Color) -> Self
Set the placeholder color.
Trait Implementations§
Source§impl Clone for InputStyle
impl Clone for InputStyle
Source§fn clone(&self) -> InputStyle
fn clone(&self) -> InputStyle
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 InputStyle
impl Debug for InputStyle
Auto Trait Implementations§
impl Freeze for InputStyle
impl RefUnwindSafe for InputStyle
impl Send for InputStyle
impl Sync for InputStyle
impl Unpin for InputStyle
impl UnwindSafe for InputStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more