Skip to content

Conversation

@rparrett
Copy link
Contributor

@rparrett rparrett commented Mar 6, 2024

Objective

Fixes #12226

Prior to the bevy_color port, DARK GRAY used to mean "dark grey." But it is now lighter than GRAY, matching the css4 spec.

Solution

Change usages of css::DARK_GRAY to Color::srgb(0.25, 0.25, 0.25) to restore the examples to their former colors.

With one exception: display_and_visibility. I think the new color is an improvement.

Note

A lot of these examples could use nicer colors. I'm not trying to revamp everything here.

The css4 palette is truly a horror. See #12176 and #12080 for some discussion about alternatives.

@rparrett rparrett added the C-Examples An addition or correction to our examples label Mar 6, 2024
@mockersf mockersf added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Mar 6, 2024
@mockersf mockersf added this pull request to the merge queue Mar 6, 2024
Merged via the queue into bevyengine:main with commit d56e167 Mar 6, 2024
spectria-limina pushed a commit to spectria-limina/bevy that referenced this pull request Mar 9, 2024
…ne#12333)

# Objective

Fixes bevyengine#12226

Prior to the `bevy_color` port, `DARK GRAY` used to mean "dark grey."
But it is now lighter than `GRAY`, matching the css4 spec.

## Solution

Change usages of `css::DARK_GRAY` to `Color::srgb(0.25, 0.25, 0.25)` to
restore the examples to their former colors.

With one exception: `display_and_visibility`. I think the new color is
an improvement.

## Note

A lot of these examples could use nicer colors. I'm not trying to revamp
everything here.

The css4 palette is truly a horror. See bevyengine#12176 and bevyengine#12080 for some
discussion about alternatives.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Examples An addition or correction to our examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Various examples are incorrectly using DARK_GRAY

3 participants