mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 19:26:09 +00:00
f28ac264f1
Update examples to use it.
15 lines
341 B
Rust
15 lines
341 B
Rust
extern crate cursive;
|
|
|
|
use cursive::prelude::*;
|
|
|
|
fn main() {
|
|
let mut siv = Cursive::new();
|
|
siv.load_theme("assets/style.toml");
|
|
|
|
siv.add_layer(Dialog::new(TextView::new("This application uses a custom theme!"))
|
|
.title("Themed dialog")
|
|
.button("Quit", |s| s.quit()));
|
|
|
|
siv.run();
|
|
}
|