diff --git a/Cargo.toml b/Cargo.toml index 36b643ee30..9bd451a2e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1780,12 +1780,12 @@ category = "UI (User Interface)" wasm = true [[example]] -name = "text_layout" -path = "examples/ui/text_layout.rs" +name = "flex_layout" +path = "examples/ui/flex_layout.rs" -[package.metadata.example.text_layout] -name = "Text Layout" -description = "Demonstrates how the AlignItems and JustifyContent properties can be composed to layout text" +[package.metadata.example.flex_layout] +name = "Flex Layout" +description = "Demonstrates how the AlignItems and JustifyContent properties can be composed to layout nodes and position text" category = "UI (User Interface)" wasm = false diff --git a/examples/README.md b/examples/README.md index 6e1723c447..d518799933 100644 --- a/examples/README.md +++ b/examples/README.md @@ -330,11 +330,11 @@ Example | Description Example | Description --- | --- [Button](../examples/ui/button.rs) | Illustrates creating and updating a button +[Flex Layout](../examples/ui/flex_layout.rs) | Demonstrates how the AlignItems and JustifyContent properties can be composed to layout nodes and position text [Font Atlas Debug](../examples/ui/font_atlas_debug.rs) | Illustrates how FontAtlases are populated (used to optimize text rendering internally) [Relative Cursor Position](../examples/ui/relative_cursor_position.rs) | Showcases the RelativeCursorPosition component [Text](../examples/ui/text.rs) | Illustrates creating and updating text [Text Debug](../examples/ui/text_debug.rs) | An example for debugging text layout -[Text Layout](../examples/ui/text_layout.rs) | Demonstrates how the AlignItems and JustifyContent properties can be composed to layout text [Transparency UI](../examples/ui/transparency_ui.rs) | Demonstrates transparency for UI [UI](../examples/ui/ui.rs) | Illustrates various features of Bevy UI [UI Scaling](../examples/ui/ui_scaling.rs) | Illustrates how to scale the UI diff --git a/examples/ui/text_layout.rs b/examples/ui/flex_layout.rs similarity index 99% rename from examples/ui/text_layout.rs rename to examples/ui/flex_layout.rs index 78b1764d0e..8caaf4b555 100644 --- a/examples/ui/text_layout.rs +++ b/examples/ui/flex_layout.rs @@ -10,7 +10,7 @@ fn main() { .add_plugins(DefaultPlugins.set(WindowPlugin { primary_window: Some(Window { resolution: [870., 1066.].into(), - title: "Bevy Text Layout Example".to_string(), + title: "Bevy Flex Layout Example".to_string(), ..Default::default() }), ..Default::default()