FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ferroui_themes_simple

    module · ferroui-themes-simple · v0.5.0

    module ferroui_themes_simple
    

    ferroui-themes-simple

    The Simple theme: the control themes of the control set and the resources they use, in a light and a dark variant.

    The theme is markup: SimpleTheme.xaml (the document of the SimpleTheme class), Accents/Base.xaml (colours and brushes of the variants), Controls/SimpleControls.xaml (the list of the control themes) and one document per control under Controls/. The documents belong to the assembly FerroUI.Themes.Simple, with the URIs ferres://FerroUI.Themes.Simple/<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 SimpleTheme.xaml (see build.rs).

    application.styles().add(SimpleTheme::new().upcast::<Styles>());
    

    View source

    Contents

    Availability

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