pub struct Style {Show 23 fields
pub panel_bg: Color,
pub panel_top_border: Color,
pub panel_padding_horizontal: f64,
pub panel_padding_top: f64,
pub panel_padding_bottom: f64,
pub row_height: f64,
pub key_h_gap: f64,
pub key_v_gap: f64,
pub key_corner_radius: f64,
pub key_face_bg: Color,
pub key_face_bg_pressed: Color,
pub key_face_text: Color,
pub key_face_text_pressed: Color,
pub key_shadow: Color,
pub key_shadow_offset_y: f64,
pub letter_font_size: f64,
pub utility_font_size: f64,
pub util_key_bg: Color,
pub util_key_bg_pressed: Color,
pub util_key_text: Color,
pub return_key_bg: Color,
pub return_key_text: Color,
pub return_key_bg_pressed: Color,
}Expand description
Tokens consumed by the keyboard painters.
Fields§
§panel_bg: ColorColor behind all keys.
panel_top_border: ColorHairline at the top edge of the panel.
panel_padding_horizontal: f64Padding around the key grid.
panel_padding_top: f64§panel_padding_bottom: f64§row_height: f64Total height target per row of keys (logical pixels).
key_h_gap: f64Gap between adjacent keys in a row.
key_v_gap: f64Gap between rows.
key_corner_radius: f64Key corner radius.
key_face_bg: Color§key_face_bg_pressed: Color§key_face_text: Color§key_face_text_pressed: Color§key_shadow: Color§key_shadow_offset_y: f64§letter_font_size: f64Font size for letter caps (digits + symbols inherit this).
utility_font_size: f64Font size for utility key labels (“space”, “return”, “ABC”, “123”).
util_key_bg: Color§util_key_bg_pressed: Color§util_key_text: Color§return_key_bg: ColorAccent applied to the Return key (matches platform send-button color).
return_key_text: Color§return_key_bg_pressed: ColorImplementations§
Source§impl Style
impl Style
Sourcepub fn for_profile(profile: InputProfile) -> Self
pub fn for_profile(profile: InputProfile) -> Self
Pick the style appropriate for the active input profile.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
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