https://github.com/krypt0nn/gtk-example-app
gtk4 + libadwaita + rust example application
https://github.com/krypt0nn/gtk-example-app
gtk
Last synced: 3 months ago
JSON representation
gtk4 + libadwaita + rust example application
- Host: GitHub
- URL: https://github.com/krypt0nn/gtk-example-app
- Owner: krypt0nn
- License: gpl-3.0
- Created: 2022-05-09T15:32:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-24T11:54:27.000Z (almost 3 years ago)
- Last Synced: 2025-01-06T06:43:36.526Z (5 months ago)
- Topics: gtk
- Language: Rust
- Homepage:
- Size: 64.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GTK ❤️ Rust - Example app
This repo contains example gtk4 + libadwaita + rust application
For UI declarations I use [Blueprint](https://gitlab.gnome.org/jwestman/blueprint-compiler)
## Useful links
- [Libadwaita documentation](https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/index.html)
- [Libadwaita Demo app](https://gitlab.gnome.org/GNOME/libadwaita/-/tree/main/demo) - Run it with `adwaita-1-demo`
- [GTK4 documentation](https://docs.gtk.org/gtk4/index.html)
- [GTK4 classes](https://docs.gtk.org/gtk4/index.html#classes)
- [Blueprint documentation](https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/examples.html)
- [gtk-rs documentation](https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/index.html)
- [gtk-rs examples](https://github.com/gtk-rs/gtk4-rs/tree/master/examples)
- [Freedesktop icon names specification](https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html)> You can add `-symbolic` postfix to icon names. So you can, e.g., use both `edit-find` and `edit-find-symbolic`. The last one is flat
## Clone repo
```sh
git clone --recursive https://github.com/krypt0nn/gtk-example-app ./my-app
```| Folder | Description |
| - | - |
| assets | Assets folder for images and so |
| assets/ui | Blueprint UI files |
| assets/ui/.dist | UI files compiled by the blueprint |
| src | Rust source code |
| target/release | Release build of the app |
| blueprint-compiler | Blueprint compiler |## Run app
```sh
cargo run
```## Build app
```sh
cargo build --release
```