FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ThemeShadowTheme

    enum · ferroui-base · v0.5.0

    enum ThemeShadowTheme
    

    The theme a theme shadow is drawn for (WinUI's ElementTheme as GetDropShadowRecipe takes it).

    View source

    Members

    Light

    Light
    

    Source

    Dark

    Dark
    

    Source

    HighContrast

    HighContrast
    

    A high contrast theme: no shadow (NeedsDropShadowVisual).

    Source

    of_variant

    fn of_variant(variant: Option<&ThemeVariant>) -> ThemeShadowTheme
    

    The theme of the theme variant in effect for an element: a variant that is or inherits HighContrast (the high contrast variant of the WinUI theme) is high contrast, one that is or inherits Dark is dark, anything else light.

    Source

    of

    fn of(element: &Visual) -> ThemeShadowTheme
    

    The theme of element.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.