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 <alice.i.cecile@gmail.com>
This commit is contained in:
Asier Illarramendi 2023-03-22 09:22:56 +01:00 committed by GitHub
parent 6dda873ddc
commit 47be369e41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -1780,12 +1780,12 @@ category = "UI (User Interface)"
wasm = true wasm = true
[[example]] [[example]]
name = "text_layout" name = "flex_layout"
path = "examples/ui/text_layout.rs" path = "examples/ui/flex_layout.rs"
[package.metadata.example.text_layout] [package.metadata.example.flex_layout]
name = "Text Layout" name = "Flex Layout"
description = "Demonstrates how the AlignItems and JustifyContent properties can be composed to layout text" description = "Demonstrates how the AlignItems and JustifyContent properties can be composed to layout nodes and position text"
category = "UI (User Interface)" category = "UI (User Interface)"
wasm = false wasm = false

View file

@ -330,11 +330,11 @@ Example | Description
Example | Description Example | Description
--- | --- --- | ---
[Button](../examples/ui/button.rs) | Illustrates creating and updating a button [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) [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 [Relative Cursor Position](../examples/ui/relative_cursor_position.rs) | Showcases the RelativeCursorPosition component
[Text](../examples/ui/text.rs) | Illustrates creating and updating text [Text](../examples/ui/text.rs) | Illustrates creating and updating text
[Text Debug](../examples/ui/text_debug.rs) | An example for debugging text layout [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 [Transparency UI](../examples/ui/transparency_ui.rs) | Demonstrates transparency for UI
[UI](../examples/ui/ui.rs) | Illustrates various features of Bevy 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 [UI Scaling](../examples/ui/ui_scaling.rs) | Illustrates how to scale the UI

View file

@ -10,7 +10,7 @@ fn main() {
.add_plugins(DefaultPlugins.set(WindowPlugin { .add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window { primary_window: Some(Window {
resolution: [870., 1066.].into(), resolution: [870., 1066.].into(),
title: "Bevy Text Layout Example".to_string(), title: "Bevy Flex Layout Example".to_string(),
..Default::default() ..Default::default()
}), }),
..Default::default() ..Default::default()