pub enum Brightness {
Light,
Dark,
}Expand description
Whether a surface is showing a light or a dark interface.
The platform’s own preference, which an application may follow or ignore. It is not the same question as which theme this application is using: a light application on a dark system is a choice, not a mistake.
Variants§
Light
A light interface: dark content on a light surface.
Dark
A dark interface: light content on a dark surface.
Implementations§
Source§impl Brightness
impl Brightness
Sourcepub const fn inverted(self) -> Brightness
pub const fn inverted(self) -> Brightness
The brightness content on this surface must have to be legible — the opposite of this one. A dark surface takes light content, and the other way round.
Trait Implementations§
Source§impl Clone for Brightness
impl Clone for Brightness
impl Copy for Brightness
Source§impl Debug for Brightness
impl Debug for Brightness
Source§impl Default for Brightness
impl Default for Brightness
impl Eq for Brightness
Source§impl PartialEq for Brightness
impl PartialEq for Brightness
impl StructuralPartialEq for Brightness
Auto Trait Implementations§
impl Freeze for Brightness
impl RefUnwindSafe for Brightness
impl Send for Brightness
impl Sync for Brightness
impl Unpin for Brightness
impl UnsafeUnpin for Brightness
impl UnwindSafe for Brightness
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