Fix: splitted editor and debug columns
This commit is contained in:
parent
346d4ed290
commit
dd0f3d883e
1 changed files with 9 additions and 8 deletions
|
|
@ -48,14 +48,14 @@ fn ui() -> impl Scene {
|
||||||
Node {
|
Node {
|
||||||
width: percent(100),
|
width: percent(100),
|
||||||
height: percent(100),
|
height: percent(100),
|
||||||
|
display: Display::Flex,
|
||||||
align_items: AlignItems::Start,
|
align_items: AlignItems::Start,
|
||||||
justify_content: JustifyContent::Start,
|
justify_content: JustifyContent::Start,
|
||||||
display: Display::Flex,
|
|
||||||
flex_direction: FlexDirection::Row,
|
flex_direction: FlexDirection::Row,
|
||||||
column_gap: px(8)
|
column_gap: px(8)
|
||||||
}
|
}
|
||||||
Children [
|
Children [
|
||||||
debug_column()
|
debug_column(),
|
||||||
editor_column()
|
editor_column()
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -63,6 +63,9 @@ fn ui() -> impl Scene {
|
||||||
|
|
||||||
fn debug_column() -> impl Scene {
|
fn debug_column() -> impl Scene {
|
||||||
bsn! {
|
bsn! {
|
||||||
|
pane()
|
||||||
|
pane_header()
|
||||||
|
pane_body()
|
||||||
Node {
|
Node {
|
||||||
display: Display::Flex,
|
display: Display::Flex,
|
||||||
flex_direction: FlexDirection::Column,
|
flex_direction: FlexDirection::Column,
|
||||||
|
|
@ -73,9 +76,6 @@ fn debug_column() -> impl Scene {
|
||||||
width: px(256),
|
width: px(256),
|
||||||
min_width: px(256),
|
min_width: px(256),
|
||||||
}
|
}
|
||||||
pane()
|
|
||||||
pane_header()
|
|
||||||
pane_body()
|
|
||||||
Children [
|
Children [
|
||||||
water_amount_label(),
|
water_amount_label(),
|
||||||
pause_button(),
|
pause_button(),
|
||||||
|
|
@ -86,6 +86,9 @@ fn debug_column() -> impl Scene {
|
||||||
|
|
||||||
fn editor_column() -> impl Scene {
|
fn editor_column() -> impl Scene {
|
||||||
bsn! {
|
bsn! {
|
||||||
|
pane()
|
||||||
|
pane_header()
|
||||||
|
pane_body()
|
||||||
Node {
|
Node {
|
||||||
display: Display::Flex,
|
display: Display::Flex,
|
||||||
flex_direction: FlexDirection::Column,
|
flex_direction: FlexDirection::Column,
|
||||||
|
|
@ -96,9 +99,6 @@ fn editor_column() -> impl Scene {
|
||||||
width: px(256),
|
width: px(256),
|
||||||
min_width: px(256),
|
min_width: px(256),
|
||||||
}
|
}
|
||||||
pane()
|
|
||||||
pane_header()
|
|
||||||
pane_body()
|
|
||||||
Children [
|
Children [
|
||||||
label("Tools")
|
label("Tools")
|
||||||
ToolLabel,
|
ToolLabel,
|
||||||
|
|
@ -172,6 +172,7 @@ fn simulation_speed() -> impl Scene {
|
||||||
SpeedLabel
|
SpeedLabel
|
||||||
Node {
|
Node {
|
||||||
justify_self: JustifySelf::Stretch
|
justify_self: JustifySelf::Stretch
|
||||||
|
align_self: AlignSelf::Center,
|
||||||
},
|
},
|
||||||
@FeathersButton {
|
@FeathersButton {
|
||||||
@caption: bsn! { label(">>") }
|
@caption: bsn! { label(">>") }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue