Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I bumped Bevy to 0.14.
Since 0.14 Bevy no longer re-exports
thiserror, I added it to the crate dependencies. Additionally, Bevy has changed how theBackgroundColorcomponent works.BackgroundColorno longer tints the color of images inImageBundle. I updated the alpha demo so that alpha is adjusted based on the component combination: if an entity has aUIImagecomponent, the color is set on it; if not, theBackgroundColorcomponent is updated.I added support for
border-colorandborder-radiusproperties, and renamedbordertoborder-widthto keep things consistent.I also simplified the usage of hot reload. It is now enabled automatically when Bevy's
file_watcherfeature is enabled. As a result, I removed thehot_reloadexample since it is no longer needed.There was a bug (I think only in 0.14) where the game occasionally failed to load a CSS asset at startup, resulting in the following error:
This issue was related to the loading order of systems. Moving the entire schedule right after the update phase resolved the problem. I adapted this fix from the zmbush fork, and I think it would be nice to credit her in the README.
With these changes and minor fixes in the crate code, all examples now run successfully.