wip
This commit is contained in:
@@ -46,60 +46,43 @@ pub fn new() -> Layout {
|
|||||||
Section("Root"),
|
Section("Root"),
|
||||||
Node(
|
Node(
|
||||||
t: Container,
|
t: Container,
|
||||||
|
content: "Music Player",
|
||||||
|
width_percent: 100,
|
||||||
|
height_percent: 100,
|
||||||
|
children: [Header, Search, PlaybackTime],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
#(
|
||||||
|
Header,
|
||||||
|
Node(
|
||||||
|
t: Row,
|
||||||
|
content: "Foo (1) | Bar (2) | Baz (3)",
|
||||||
|
width_percent: 100,
|
||||||
|
height_percent: 33,
|
||||||
|
children: [],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
#(
|
||||||
|
Search,
|
||||||
|
Node(
|
||||||
|
t: Row,
|
||||||
content: "",
|
content: "",
|
||||||
width_percent: 100,
|
width_percent: 100,
|
||||||
height_percent: 100,
|
height_percent: 33,
|
||||||
children: [
|
|
||||||
Section("Row1"),
|
|
||||||
Section("Row2"),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
#(
|
|
||||||
Section("Row1"),
|
|
||||||
Node(
|
|
||||||
t: Row,
|
|
||||||
content: "row 1",
|
|
||||||
width_percent: 100,
|
|
||||||
height_percent: 50,
|
|
||||||
children: [
|
|
||||||
Section("A"),
|
|
||||||
Section("B"),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
#(
|
|
||||||
Section("A"),
|
|
||||||
Node(
|
|
||||||
t: Cell,
|
|
||||||
content: "cell 1",
|
|
||||||
width_percent: 50,
|
|
||||||
height_percent: 100,
|
|
||||||
children: [],
|
children: [],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
#(
|
#(
|
||||||
Section("B"),
|
PlaybackTime,
|
||||||
Node(
|
|
||||||
t: Cell,
|
|
||||||
content: "cell 2",
|
|
||||||
width_percent: 50,
|
|
||||||
height_percent: 100,
|
|
||||||
children: [],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
#(
|
|
||||||
Section("Row2"),
|
|
||||||
Node(
|
Node(
|
||||||
t: Row,
|
t: Row,
|
||||||
content: "row 2",
|
content: "00:00",
|
||||||
width_percent: 100,
|
width_percent: 100,
|
||||||
height_percent: 50,
|
height_percent: 33,
|
||||||
children: [],
|
children: [],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
])
|
])
|
||||||
|
|
||||||
Layout(width: 0, height: 0, nodes: nodes)
|
Layout(width: 0, height: 0, nodes: nodes)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user