# ferroui_themes_fluent

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-themes-fluent/

**module** · [`ferroui-themes-fluent`](/docs/0.5.0/api/ferroui-themes-fluent/) · v0.5.0

```rust
module ferroui_themes_fluent
```

ferroui-themes-fluent

The Fluent theme: the control themes of the control set, the colour
palettes and the resources they use, in a light and a dark variant and
in a normal and a compact density.

The theme is markup: `FluentTheme.xaml` (the document of the
[`FluentTheme`](/docs/0.5.0/api/ferroui-themes-fluent/struct-fluenttheme/) class), `Accents/*.xaml` (palette, resources and
brushes), `DensityStyles/Compact.xaml`, `Strings/InvariantResources.xaml`,
`Controls/FluentControls.xaml` (the list of the control themes) and one
document per control under `Controls/`. The documents
belong to the assembly `FerroUI.Themes.Fluent`, with the URIs
`ferres://FerroUI.Themes.Fluent/<path>`. They are compiled into the crate,
as upstream's compiler compiles them, and are not embedded as assets: a
load by URI goes to the loader table of the compiled markup, which
answers the public document `FluentTheme.xaml` (see `build.rs`).

```ignore
application.styles().add(FluentTheme::new().as_style());
```

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Fluent/lib.rs#L1)

## Contents

- [`accents`](/docs/0.5.0/api/ferroui-themes-fluent/accents/) — module
- [`excluded_documents`](/docs/0.5.0/api/ferroui-themes-fluent/function-excluded_documents/) — function
- [`ExcludedDocument`](/docs/0.5.0/api/ferroui-themes-fluent/struct-excludeddocument/) — struct
- [`ColorPaletteResources`](/docs/0.5.0/api/ferroui-themes-fluent/struct-colorpaletteresources/) — struct
- [`ColorPaletteResourcesCollection`](/docs/0.5.0/api/ferroui-themes-fluent/struct-colorpaletteresourcescollection/) — struct
- [`DensityStyle`](/docs/0.5.0/api/ferroui-themes-fluent/enum-densitystyle/) — enum
- [`FluentTheme`](/docs/0.5.0/api/ferroui-themes-fluent/struct-fluenttheme/) — struct
- [`register_types`](/docs/0.5.0/api/ferroui-themes-fluent/function-register_types/) — function
- [`ASSEMBLY`](/docs/0.5.0/api/ferroui-themes-fluent/static-assembly/) — static

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
