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

@@ -13,7 +13,7 @@ use track::Track;
use ui::trackbutton::TrackButton;
pub struct SearchView {
pub view: Panel<LinearLayout>,
pub view: LinearLayout,
}
impl SearchView {
@@ -75,7 +75,7 @@ impl SearchView {
let layout = LinearLayout::new(Orientation::Vertical)
.child(searchfield)
.child(scrollable);
let rootpanel = Panel::new(layout).title("Search");
return SearchView { view: rootpanel };
return SearchView { view: layout };
}
}