pub struct Palette {
pub panel: (u8, u8, u8),
pub key: (u8, u8, u8),
pub hot: (u8, u8, u8),
pub accent: (u8, u8, u8),
pub accent_text: (u8, u8, u8),
pub text: (u8, u8, u8),
pub dim: (u8, u8, u8),
}Expand description
Colors for the keyboard panel; all (r, g, b).
Fields§
§panel: (u8, u8, u8)Panel background behind the keys.
key: (u8, u8, u8)Idle key face.
hot: (u8, u8, u8)Latched toggle key face (Shift/Sym while active).
accent: (u8, u8, u8)Highlighted (selected) key face.
accent_text: (u8, u8, u8)Label color on the highlighted key.
text: (u8, u8, u8)Label color on idle keys.
dim: (u8, u8, u8)Hint-line color.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Palette
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnsafeUnpin for Palette
impl UnwindSafe for Palette
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)