Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoWrap Text feature #8947

Merged
merged 14 commits into from
Jun 26, 2023
Merged

Commits on Jun 18, 2023

  1. FixedMeasure

    The `size` field is changed to public. It shouldn't have been private, this was an error.
    
    `TextWrapOverride`
    Enum that describes alternative text wrapping behaviours.
    
    `TextOptions`
    Component with extra options for Bevy UI's `TextBundle` that aren't needed for `Text2dBundle`.
    
    `Text2dBundle`
    Added `TextOptions` component to this bundle.
    ickshonpe committed Jun 18, 2023
    Configuration menu
    Copy the full SHA
    56033b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    884e8e4 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2023

  1. Removed the TextOptions and TextWrapOverride types.

    Instead a variant `NeverBreak` has been added to the `BreakLineOn` enum.
    ickshonpe committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    973e675 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2023

  1. changes:

    Added `Text2d` support for the `NoWrap` variant by setting the width bound to infinity if `NoWrap` is set.
    
    `BreakLineOn::NeverBreak` renamed to `BreakLineOn::NoWrap` to match the name of the CSS text property `no_wrap`.
    
    `text_wrap_debug`
    Set `Oveflow::clip_x()` on each of the panels, to clip the unwrapped text.
    ickshonpe committed Jun 24, 2023
    Configuration menu
    Copy the full SHA
    ea42c27 View commit details
    Browse the repository at this point in the history
  2. text_wrap_debug:

    Removed a line intializing the style to default for a `TextBundle` that did nothing.
    ickshonpe committed Jun 24, 2023
    Configuration menu
    Copy the full SHA
    a416864 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ae48806 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b87600c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3a08d34 View commit details
    Browse the repository at this point in the history
  6. cargo fmt

    ickshonpe committed Jun 24, 2023
    Configuration menu
    Copy the full SHA
    c4465f9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d59a0f6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a832ee5 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. Configuration menu
    Copy the full SHA
    672d148 View commit details
    Browse the repository at this point in the history
  2. Added a with_no_wrap builder method to Text

    Corrected a mistake in the description for `NoWrap`.
    
    Added more detailed comments explaining that `NoWrap` only disables soft wrapping and that hard wrapping will still occur.
    ickshonpe committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    3eb7a24 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    daa4cd2 View commit details
    Browse the repository at this point in the history