cursive/examples/theme.rs
Alexandre Bury f28ac264f1 Add prelude import module
Update examples to use it.
2016-07-20 21:25:14 -07:00

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();
}