pub enum PageAppearance {
Original,
Sepia,
Dark,
HighContrast {
ink: Rgba8,
paper: Rgba8,
},
}Expand description
How the page’s colours are drawn. The default keeps them.
Added in 0.2.0.
Variants§
Original
The page’s own colours.
Sepia
Warm paper and brown ink, hue kept.
Dark
Light ink on dark paper: lightness inverted, hue kept.
HighContrast
Two colours, usually the system’s CanvasText and Canvas: the page’s dark colours
toward ink, its light ones toward paper, mid-tones pushed toward ink.
Implementations§
Trait Implementations§
Source§impl Clone for PageAppearance
impl Clone for PageAppearance
impl Copy for PageAppearance
Source§impl Debug for PageAppearance
impl Debug for PageAppearance
Source§impl Default for PageAppearance
impl Default for PageAppearance
impl Eq for PageAppearance
Source§impl Hash for PageAppearance
impl Hash for PageAppearance
Source§impl PartialEq for PageAppearance
impl PartialEq for PageAppearance
impl StructuralPartialEq for PageAppearance
Auto Trait Implementations§
impl Forget for PageAppearance
impl Freeze for PageAppearance
impl Move for PageAppearance
impl RefUnwindSafe for PageAppearance
impl Send for PageAppearance
impl Sync for PageAppearance
impl Unpin for PageAppearance
impl UnsafeUnpin for PageAppearance
impl UnwindSafe for PageAppearance
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