Create About_Panel.rs

added an about layer function that returns a view
This commit is contained in:
michael-bailey 2020-09-27 08:43:10 +01:00 committed by michael bailey
parent 49d3afd11f
commit e5b439bb57
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
use cursive::views::{Dialog, TextView};
use cursive::view::ViewWrapper;
use cursive::{Printer, View};
pub fn About() -> Box<dyn View> {
Box::new(
Dialog::new()
.content("rust chat server written by Mitchel Hardie & Michael Bailey (c) 2020")
.button("Close", |s| {s.pop_layer();})
)
}