cursive/examples/theme.rs
2016-06-25 17:11:42 -07:00

16 lines
377 B
Rust

extern crate cursive;
use cursive::Cursive;
use cursive::view::{Dialog, TextView};
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();
}