majc: implement changelog screen
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c3e20b089c
commit
62350daba5
|
@ -0,0 +1,8 @@
|
|||
## 0.2.0
|
||||
|
||||
* History works (h/l)
|
||||
* Added changelog screen
|
||||
|
||||
## 0.1.0
|
||||
|
||||
* Base functionality implemented
|
|
@ -14,6 +14,16 @@ pub fn help(siv: &mut Cursive) {
|
|||
);
|
||||
}
|
||||
|
||||
pub fn changelog(siv: &mut Cursive) {
|
||||
let content = include_str!("./changelog.gmi");
|
||||
|
||||
siv.add_layer(
|
||||
Dialog::around(TextView::new(crate::gemini::render(content)).scrollable())
|
||||
.title("Changelog")
|
||||
.dismiss_button("Ok"),
|
||||
);
|
||||
}
|
||||
|
||||
pub fn about(siv: &mut Cursive) {
|
||||
siv.add_layer(Dialog::info(format!(
|
||||
"{} {}\n\nby {}\n\nSee https://tulpa.dev/cadey/maj for more information",
|
||||
|
|
|
@ -28,6 +28,7 @@ fn main() {
|
|||
"majc",
|
||||
MenuTree::new()
|
||||
.leaf("About", commands::about)
|
||||
.leaf("Changelog", commands::changelog)
|
||||
.leaf("Help", commands::help)
|
||||
.leaf("Quit", cursive::Cursive::quit),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue