pub struct ThemeShadows {
pub box_shadow: ThemeBoxShadowScale,
pub inset: ThemeInsetShadowScale,
pub drop: ThemeDropShadowScale,
pub text: ThemeTextShadowScale,
}Fields§
§box_shadow: ThemeBoxShadowScale§inset: ThemeInsetShadowScale§drop: ThemeDropShadowScale§text: ThemeTextShadowScaleImplementations§
Source§impl ThemeShadows
impl ThemeShadows
Sourcepub fn for_colors(colors: &ThemeColors) -> Self
pub fn for_colors(colors: &ThemeColors) -> Self
Scheme-aware elevation: Light casts faint shadows tinted with the theme’s text ink, Dark casts deeper black shadows, and the true-black OLED theme casts none at all — elevation there is drawn with borders.
Sourcepub fn light() -> Self
pub fn light() -> Self
Light ladder: 0 1px 2px 6%, 0 2px 10px 8%, 0 16px 40px 16%
anchors interpolated across the scale, tinted with near-black ink.
Sourcepub fn light_with_ink(shadow_ink: Color) -> Self
pub fn light_with_ink(shadow_ink: Color) -> Self
The light ladder cast with a custom shadow ink.
Trait Implementations§
Source§impl Clone for ThemeShadows
impl Clone for ThemeShadows
impl Copy for ThemeShadows
Source§impl Debug for ThemeShadows
impl Debug for ThemeShadows
Source§impl Default for ThemeShadows
impl Default for ThemeShadows
Source§impl PartialEq for ThemeShadows
impl PartialEq for ThemeShadows
impl StructuralPartialEq for ThemeShadows
Auto Trait Implementations§
impl Forget for ThemeShadows
impl Freeze for ThemeShadows
impl Move for ThemeShadows
impl RefUnwindSafe for ThemeShadows
impl Send for ThemeShadows
impl Sync for ThemeShadows
impl Unpin for ThemeShadows
impl UnsafeUnpin for ThemeShadows
impl UnwindSafe for ThemeShadows
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