Skip to content

Commit

Permalink
👽💄 update style for bevy 0.12 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chriamue committed Dec 17, 2023
1 parent 516a1b6 commit ab66e70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/hud/styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ impl HudStyle {
pub fn style() -> Style {
Style {
display: Display::Flex,
justify_self: JustifySelf::End,
flex_direction: FlexDirection::Row,
justify_content: JustifyContent::Start,
align_items: AlignItems::Center,
width: Val::Auto,
width: Val::Percent(60.0),
height: Val::Percent(15.0),
margin: UiRect::new(Val::Px(4.0), Val::Px(4.0), Val::Px(4.0), Val::Px(4.0)),
..Style::DEFAULT
Expand All @@ -22,7 +23,7 @@ impl HudStyle {
flex_direction: FlexDirection::Row,
justify_content: JustifyContent::Center,
align_items: AlignItems::Center,
margin: UiRect::new(Val::Px(16.0), Val::Px(8.0), Val::Px(0.0), Val::Px(0.0)),
margin: UiRect::new(Val::Px(8.0), Val::Px(8.0), Val::Px(0.0), Val::Px(0.0)),
..Style::DEFAULT
}
}
Expand Down
1 change: 1 addition & 0 deletions src/ui/simulation_control/styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ impl SimulationControlStyle {
pub fn style() -> Style {
Style {
display: Display::Flex,
align_self: AlignSelf::FlexStart,
flex_direction: FlexDirection::Row,
justify_content: JustifyContent::SpaceBetween,
align_items: AlignItems::Center,
Expand Down

0 comments on commit ab66e70

Please sign in to comment.