mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Slider example: initialize title
This commit is contained in:
parent
af803a4587
commit
53a5bf19f3
@ -19,6 +19,7 @@ fn main() {
|
|||||||
s.add_layer(Dialog::text(format!("Lucky number {}!", v))
|
s.add_layer(Dialog::text(format!("Lucky number {}!", v))
|
||||||
.button("Ok", Cursive::quit));
|
.button("Ok", Cursive::quit));
|
||||||
}))
|
}))
|
||||||
|
.title("[ 7 ]")
|
||||||
.with_id("dialog"));
|
.with_id("dialog"));
|
||||||
|
|
||||||
siv.run();
|
siv.run();
|
||||||
|
Loading…
Reference in New Issue
Block a user