aboutsummaryrefslogtreecommitdiffstats
path: root/src/views/util.rs
blob: 1dec69af3d604689d660715ac36aa146d53f4d6f (plain) (blame)
1
2
3
4
5
pub type FullView<T> = cursive::views::OnEventView<cursive::views::IdView<T>>;

pub fn dialog(s: &str) -> impl cursive::view::View {
    cursive::views::Panel::new(cursive::views::Dialog::info(s))
}