mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
Use Explicit Names for Flex Direction (#2672)
# Objective - Clarify vague meaning of "Ltr" and "Rtl". For someone familiar with Flex Box, this is easy to understand, but being more explicit will help beginners or those unfamiliar, without the need to do research. ## Solution - Change three letter abbreviation to fully descriptive name.
This commit is contained in:
parent
481fa3c7a0
commit
958f8b124a
2 changed files with 4 additions and 4 deletions
|
@ -114,8 +114,8 @@ impl From<Direction> for stretch::style::Direction {
|
|||
fn from(value: Direction) -> Self {
|
||||
match value {
|
||||
Direction::Inherit => stretch::style::Direction::Inherit,
|
||||
Direction::Ltr => stretch::style::Direction::LTR,
|
||||
Direction::Rtl => stretch::style::Direction::RTL,
|
||||
Direction::LeftToRight => stretch::style::Direction::LTR,
|
||||
Direction::RightToLeft => stretch::style::Direction::RTL,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -155,8 +155,8 @@ impl Default for AlignContent {
|
|||
#[reflect_value(PartialEq, Serialize, Deserialize)]
|
||||
pub enum Direction {
|
||||
Inherit,
|
||||
Ltr,
|
||||
Rtl,
|
||||
LeftToRight,
|
||||
RightToLeft,
|
||||
}
|
||||
|
||||
impl Default for Direction {
|
||||
|
|
Loading…
Add table
Reference in a new issue