Crates.io | vivi_ui |
lib.rs | vivi_ui |
version | 0.1.0 |
source | src |
created_at | 2024-07-08 05:39:29.985827 |
updated_at | 2024-07-08 05:39:29.985827 |
description | Custom component library for Slint |
homepage | |
repository | https://app.radicle.xyz/nodes/seed.radicle.garden/rad:z3oxAZSLcyXgpa7fcvgtueF49jHpH |
max_upload_size | |
id | 1295386 |
size | 207,834 |
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.There is the Gallery that contains an overview of all magic
components vivi
provides.
vivi_ui
as build dependency to your Cargo.toml
:[dependencies]
slint = { version = "1.6" }
[build-dependencies]
slint-build = { version = "1.6" }
vivi_ui = { version = "0.1" }
vivi::import_paths()
in your build.rs
file. It will make coop's files visible as @vivi
.fn main() {
slint_build::compile(
"ui/my_app.slint",
slint_build::CompilerConfiguration::new()
.with_library_paths(vivi_ui::import_paths()),
).unwrap();
}
import { MagicWindow, FilledButton } from "@vivi/magic.slint";
export component MyApp inherits MagicWindow {
preferred-width: 600px;
preferred-height: 400px;
title: "MyApp";
FilledButton {
text: "Click me";
}
}
The source code of vivi
and examples are available under MIT license.