vivi
vivi is a component library for Slint.
vivi provides currently the following two sets of components:
foundation: Base components that can be used to create a custom component set.magic: Ready to use component set with a custom design based on Catppuccin.
Examples
There is the Gallery that contains an overview of all magic components vivi provides.
Prerequisites
Slint>= 1.7
How to use with Rust
- Add
vivi_uias build dependency to yourCargo.toml:
[]
= { = "1.7" }
[]
= { = "1.7" }
= { = "0.2" }
- Use
vivi::import_paths()in yourbuild.rsfile. It will make coop's files visible as@vivi.
- Add an import to your Slint file (
ui/index.slint):
import { MagicWindow, FilledButton } from "@vivi/magic.slint";
export component MyApp inherits MagicWindow {
preferred-width: 600px;
preferred-height: 400px;
title: "MyApp";
FilledButton {
text: "Click me";
}
}
Get Started
To quickly get started, you can use the following rust template repository:
Contribution
Ideas, feedback and code contributions are welcome. Please check the Contribution Guide for more details.
License
The source code of vivi and examples are available under MIT license.