mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
e5cb687990
And adds a theme example. TODO: Shadow & Borders support
16 lines
368 B
Rust
16 lines
368 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();
|
|
}
|