# ThemeShadowTheme

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/enum-themeshadowtheme/

**enum** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
enum ThemeShadowTheme
```

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

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/theme_shadow.rs#L295)

## Members

- [`Light`](#variant-light)
- [`Dark`](#variant-dark)
- [`HighContrast`](#variant-highcontrast)
- [`of_variant`](#function-of_variant)
- [`of`](#function-of)

<a id="variant-light"></a>

### Light

```rust
Light
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/theme_shadow.rs#L296)

<a id="variant-dark"></a>

### Dark

```rust
Dark
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/theme_shadow.rs#L297)

<a id="variant-highcontrast"></a>

### HighContrast

```rust
HighContrast
```

A high contrast theme: no shadow (`NeedsDropShadowVisual`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/theme_shadow.rs#L299)

<a id="function-of_variant"></a>

### of_variant

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/theme_shadow.rs#L307)

<a id="function-of"></a>

### of

```rust
fn of(element: &Visual) -> ThemeShadowTheme
```

The theme of `element`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/theme_shadow.rs#L327)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-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](/docs/0.5.0/api/).
