From 47be369e41c8a1dd8d0e4a7145e1a26f16132422 Mon Sep 17 00:00:00 2001 From: Asier Illarramendi Date: Wed, 22 Mar 2023 09:22:56 +0100 Subject: [PATCH] Rename `text_layout` example to `flex_layout` (#7943) # Objective - Rename `text_layout` example to `flex_layout` to better reflect the example purpose - `AlignItems`/`JustifyContent` is not related to text layout, it's about child nodes positioning ## Solution - Rename the example --------- Co-authored-by: Alice Cecile --- Cargo.toml | 10 +++++----- examples/README.md | 2 +- examples/ui/{text_layout.rs => flex_layout.rs} | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename examples/ui/{text_layout.rs => flex_layout.rs} (99%) 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()