-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - Rename UiColor
to BackgroundColor
#6087
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! This makes more sense :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That cliffhander of an Objective: 'with border color and '..... See you in next episode :)
I think doc string should be updated.
I wonder if FillColor
would be better than Fill
.
Fill
seems better in constructor ( as you will pass a Color
just next).
but FillColor
seems better in queries. Query< ( Interaction, &mut Fill)>
seems less self-explanatory than Query<(Interaction, &mut FillColor)>
Can't really decide myself, so I'll accept both :)
I feel (no pun intended) that In the future we may add other ui components like |
|
Yep, I'm happy to go with |
UiColor
to Fill
UiColor
to BackgroundColor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't forget to rename also in the PR description 🙂
I got the title but missed the description 😅 bors r+ |
# Objective Fixes #6078. The `UiColor` component is unhelpfully named: it is unclear, ambiguous with border color and ## Solution Rename the `UiColor` component (and associated fields) to `BackgroundColor` / `background_colorl`. ## Migration Guide `UiColor` has been renamed to `BackgroundColor`. This change affects `NodeBundle`, `ButtonBundle` and `ImageBundle`. In addition, the corresponding field on `ExtractedUiNode` has been renamed to `background_color` for consistency.
Pull request successfully merged into main. Build succeeded: |
UiColor
to BackgroundColor
UiColor
to BackgroundColor
# Objective Fixes bevyengine#6078. The `UiColor` component is unhelpfully named: it is unclear, ambiguous with border color and ## Solution Rename the `UiColor` component (and associated fields) to `BackgroundColor` / `background_colorl`. ## Migration Guide `UiColor` has been renamed to `BackgroundColor`. This change affects `NodeBundle`, `ButtonBundle` and `ImageBundle`. In addition, the corresponding field on `ExtractedUiNode` has been renamed to `background_color` for consistency.
# Objective Fixes bevyengine#6078. The `UiColor` component is unhelpfully named: it is unclear, ambiguous with border color and ## Solution Rename the `UiColor` component (and associated fields) to `BackgroundColor` / `background_colorl`. ## Migration Guide `UiColor` has been renamed to `BackgroundColor`. This change affects `NodeBundle`, `ButtonBundle` and `ImageBundle`. In addition, the corresponding field on `ExtractedUiNode` has been renamed to `background_color` for consistency.
# Objective Fixes bevyengine#6078. The `UiColor` component is unhelpfully named: it is unclear, ambiguous with border color and ## Solution Rename the `UiColor` component (and associated fields) to `BackgroundColor` / `background_colorl`. ## Migration Guide `UiColor` has been renamed to `BackgroundColor`. This change affects `NodeBundle`, `ButtonBundle` and `ImageBundle`. In addition, the corresponding field on `ExtractedUiNode` has been renamed to `background_color` for consistency.
Objective
Fixes #6078. The
UiColor
component is unhelpfully named: it is unclear, ambiguous with border color andSolution
Rename the
UiColor
component (and associated fields) toBackgroundColor
/background_colorl
.Migration Guide
UiColor
has been renamed toBackgroundColor
. This change affectsNodeBundle
,ButtonBundle
andImageBundle
. In addition, the corresponding field onExtractedUiNode
has been renamed tobackground_color
for consistency.