get rid of the panel wrapper for more space

the screen title is now displayed by the layout
This commit is contained in:
Henrik Friedrichsen
2019-03-07 22:34:45 +01:00
parent b075c96134
commit 502ac36de3
6 changed files with 57 additions and 36 deletions

View File

@@ -148,15 +148,14 @@ fn main() {
let mut queueview = ui::queue::QueueView::new(queue.clone());
let logview_scroller = ScrollView::new(logview).scroll_strategy(ScrollStrategy::StickToBottom);
let logpanel = Panel::new(logview_scroller).title("Log");
let status = ui::statusbar::StatusBar::new(queue.clone(), spotify.clone());
let layout = ui::layout::Layout::new(status)
.view("search", BoxView::with_full_height(search.view))
.view("playlists", playlists.view.take().unwrap())
.view("queue", queueview.view.take().unwrap())
.view("log", logpanel);
.view("search", BoxView::with_full_height(search.view), "Search")
.view("playlists", playlists.view.take().unwrap(), "Playlists")
.view("queue", queueview.view.take().unwrap(), "Queue")
.view("log", logview_scroller, "Log");
cursive.add_fullscreen_layer(layout.with_id("main"));