row_col_toplevel_layout: Add a new method
This commit is contained in:
parent
5349f0f3d0
commit
1fd7a86ecc
2 changed files with 6 additions and 5 deletions
|
|
@ -15,11 +15,8 @@ use toplevel_layout::{LayoutToplevel, RowColToplevelLayout, ToplevelLayout};
|
|||
|
||||
pub fn toplevels<Msg>(children: Vec<cosmic::Element<Msg>>) -> Toplevels<Msg> {
|
||||
Toplevels {
|
||||
layout: RowColToplevelLayout {
|
||||
// TODO configurable
|
||||
spacing: 16,
|
||||
axis: Axis::Horizontal,
|
||||
},
|
||||
// TODO configurable
|
||||
layout: RowColToplevelLayout::new(Axis::Horizontal, 16),
|
||||
children,
|
||||
_msg: PhantomData,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue