https://github.com/paper-plane-developers/origami
Cool gtk widgets
https://github.com/paper-plane-developers/origami
Last synced: about 1 year ago
JSON representation
Cool gtk widgets
- Host: GitHub
- URL: https://github.com/paper-plane-developers/origami
- Owner: paper-plane-developers
- Created: 2023-05-22T20:48:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T16:32:26.000Z (over 1 year ago)
- Last Synced: 2025-04-09T00:28:15.700Z (about 1 year ago)
- Language: Rust
- Size: 121 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Origami
[Paper Plane](https://github.com/paper-plane-developers/paper-plane) related set of gtk widgets that can be usable outside of it.
# Add to project
You should already have [libadwaita](https://crates.io/crates/libadwaita) and [gtk4](https://crates.io/crates/gtk4) in your project.
Add with command
```
cargo add --git=https://github.com/yuraiz/origami origami --rename ori
```
Line in Cargo.toml
```
ori = { git = "https://github.com/yuraiz/origami", version = "0.1.0", package = "origami" }
```
### ori::init()
`ori::init()` calls `static_type` for every exported widget, so it makes easier to use them in templates .
# Demo
Run the demo
```
cargo run
```
Open a page directly
```
cargo run [page-name]
```
# Dependencies
That library will use latest stable versions of gtk and libadwaita.
Building demo requires `blueprint-compiler`.