libcosmic/examples/cosmic
Ian Douglas Scott b85c504d72
theme: Use boxed functions instead fn pointers (#99)
This is more general, and necessary if the custom theming is dynamically
generated.

Iced's builtin theme also uses `Box`ed `Fn`, or `Rc` where clone is
required, so this seems reasonable.

Only `Text` is left using `fn`, since it needs to be `Copy`. Hopefully
that can be changed in Iced at some point.

`::custom` methods are added to make these variants a little more
convenient to construct. This replaces a couple `From` implementations,
which are potentially problematic with a generic.
2023-04-28 16:04:57 -07:00
..
src theme: Use boxed functions instead fn pointers (#99) 2023-04-28 16:04:57 -07:00
Cargo.toml feat(theme): export cosmic-theme & add CosmicContainers to example 2023-02-28 12:26:38 -07:00
README.md Update readmes 2022-10-03 14:00:42 -06:00

COSMIC

An example of the COSMIC design system.

All the example code is located in the main file.

You can run it with cargo run:

cargo run --package cosmic --release