FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ferroui_themes_fluent

    module · ferroui-themes-fluent · v0.5.0

    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 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());
    

    View source

    Contents

    Availability

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