pub struct SymPalette {
pub c: [u32; 10],
}Expand description
the colours of a symbol’s roles (straight 0xAARRGGBB, index = SYM_* role)
Fields§
§c: [u32; 10]Implementations§
Source§impl SymPalette
impl SymPalette
Sourcepub fn from_theme(ui: &Ui, tint: u32) -> SymPalette
pub fn from_theme(ui: &Ui, tint: u32) -> SymPalette
the palette of the current theme: high contrast, dark or light; tint = the category colour 0xRRGGBB as it looks in the light theme
Sourcepub fn light(text: u32, bg: u32, tint: u32) -> SymPalette
pub fn light(text: u32, bg: u32, tint: u32) -> SymPalette
the light scheme from the text and window colours (opaque): slate outlines, near-white bodies, pale steel screens
Sourcepub fn dark(text: u32, bg: u32, tint: u32) -> SymPalette
pub fn dark(text: u32, bg: u32, tint: u32) -> SymPalette
the dark scheme: light grey outlines, bodies a step above the window, dark screens, the tint lighter and greyer
Sourcepub fn contrast(ui: &Ui) -> SymPalette
pub fn contrast(ui: &Ui) -> SymPalette
high contrast: outlines and ports in the text colour, every fill in the window colour, the tint band in the highlight (accent) colour, LEDs in the status colours
Sourcepub fn powered_off(&self) -> SymPalette
pub fn powered_off(&self) -> SymPalette
a device without power: status LEDs dark, screens off
Trait Implementations§
Source§impl Clone for SymPalette
impl Clone for SymPalette
impl Copy for SymPalette
Source§impl Debug for SymPalette
impl Debug for SymPalette
impl Eq for SymPalette
Source§impl PartialEq for SymPalette
impl PartialEq for SymPalette
impl StructuralPartialEq for SymPalette
Auto Trait Implementations§
impl Forget for SymPalette
impl Freeze for SymPalette
impl RefUnwindSafe for SymPalette
impl Send for SymPalette
impl Sync for SymPalette
impl Unpin for SymPalette
impl UnsafeUnpin for SymPalette
impl UnwindSafe for SymPalette
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