Expand description
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>());Structs§
- Excluded
Document - A control theme document that is embedded but not part of the theme yet, because it names types that are not ported.
- Simple
Theme - The Simple theme: the styles and resources of
SimpleTheme.xaml.
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/SimpleControls.xamldoes not merge yet, fromControls/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.