Skip to content

feat: add UiRect::axis#7692

Closed
SDesya74 wants to merge 1 commit intobevyengine:mainfrom
SDesya74:uirect-axis
Closed

feat: add UiRect::axis#7692
SDesya74 wants to merge 1 commit intobevyengine:mainfrom
SDesya74:uirect-axis

Conversation

@SDesya74
Copy link
Contributor

Objective

I noticed that when specifying the button style, I often need to specify the horizontal and vertical padding separately.

Solution

Add UiRect::axis function for convinience.

@alice-i-cecile alice-i-cecile added A-UI Graphical user interfaces, styles, layouts, and widgets C-Usability A targeted quality-of-life change that makes Bevy easier to use labels Feb 15, 2023
@mockersf
Copy link
Member

Similar to #7656 but you have found a better name for it in my opinion 😄

@alice-i-cecile
Copy link
Member

I like this name better too! Closing as a duplicate though; we can resume bikeshedding there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-UI Graphical user interfaces, styles, layouts, and widgets C-Usability A targeted quality-of-life change that makes Bevy easier to use

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants