Skip to main content

Crate ferroui_themes_fluent

Crate ferroui_themes_fluent 

Source
Expand description

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 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).

ⓘ
application.styles().add(FluentTheme::new().as_style());

Modules§

accents

Structs§

ColorPaletteResources
Represents a specialized resource dictionary that contains color resources used by FluentTheme elements.
ColorPaletteResourcesCollection
The colour palettes of a FluentTheme by theme variant: a dictionary that is also the resource provider of the palette of the requested variant.
ExcludedDocument
A control theme document that is embedded but not part of the theme yet, because it names types that are not ported.
FluentTheme
Includes the fluent theme in an application.

Enums§

DensityStyle
How much space the controls of the Fluent theme take.

Statics§

ASSEMBLY
What this crate states about itself for markup: its assembly name and the namespace the XML namespace of the framework maps to.

Functions§

excluded_documents
The control theme documents Controls/FluentControls.xaml does not merge yet, from Controls/excluded.txt.
register_types
Registers the namespaces, the types, the assembly, the embedded documents and the document loader of this crate (and of the crates it is built on). Cheap and idempotent.