Skip to content

Use the shorthand functions to construct Vals and UiRects in the UI examples #22753

@TimJentzsch

Description

@TimJentzsch

What problem does this solve or what need does it fill?

Consistency, teaching best practices.

What solution would you like?

Always use the shorthand syntax in UI examples. E.g.

  • Val::Px -> px()
  • Val::Percent -> percent()

What alternative(s) have you considered?

--

Additional context

--

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-ExamplesAn addition or correction to our examplesD-TrivialNice and easy! A great choice to get started with BevyS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions