style
This commit is contained in:
@@ -5,7 +5,7 @@ import gleeunit
|
||||
import gleeunit/should
|
||||
import musicplayer/ui/virtual_ansi
|
||||
|
||||
import musicplayer/ui/layout.{Layout, Node, Section}
|
||||
import musicplayer/ui/layout.{Layout, Node, Section, Style}
|
||||
|
||||
pub fn main() -> Nil {
|
||||
gleeunit.main()
|
||||
@@ -22,8 +22,7 @@ pub fn foo_test() {
|
||||
Node(
|
||||
t: layout.Container,
|
||||
content: "container",
|
||||
width_percent: 100,
|
||||
height_percent: 100,
|
||||
style: Style(width_percent: 100, height_percent: 100),
|
||||
children: [
|
||||
Section("Row1"),
|
||||
Section("Row2"),
|
||||
@@ -35,8 +34,7 @@ pub fn foo_test() {
|
||||
Node(
|
||||
t: layout.Row,
|
||||
content: "row 1",
|
||||
width_percent: 100,
|
||||
height_percent: 50,
|
||||
style: Style(width_percent: 100, height_percent: 50),
|
||||
children: [
|
||||
Section("A"),
|
||||
Section("B"),
|
||||
@@ -48,8 +46,7 @@ pub fn foo_test() {
|
||||
Node(
|
||||
t: layout.Cell,
|
||||
content: "cell 1",
|
||||
width_percent: 50,
|
||||
height_percent: 100,
|
||||
style: Style(width_percent: 50, height_percent: 100),
|
||||
children: [],
|
||||
),
|
||||
),
|
||||
@@ -58,8 +55,7 @@ pub fn foo_test() {
|
||||
Node(
|
||||
t: layout.Cell,
|
||||
content: "cell 2",
|
||||
width_percent: 50,
|
||||
height_percent: 100,
|
||||
style: Style(width_percent: 50, height_percent: 100),
|
||||
children: [],
|
||||
),
|
||||
),
|
||||
@@ -68,8 +64,7 @@ pub fn foo_test() {
|
||||
Node(
|
||||
t: layout.Row,
|
||||
content: "row 1",
|
||||
width_percent: 100,
|
||||
height_percent: 50,
|
||||
style: Style(width_percent: 100, height_percent: 50),
|
||||
children: [],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user