Skip to content

fix: add missing png feature to bevy_feathers feature#24727

Merged
alice-i-cecile merged 1 commit into
bevyengine:mainfrom
Sigma-dev:fix/feathers-png-icons
Jun 23, 2026
Merged

fix: add missing png feature to bevy_feathers feature#24727
alice-i-cecile merged 1 commit into
bevyengine:mainfrom
Sigma-dev:fix/feathers-png-icons

Conversation

@Sigma-dev

@Sigma-dev Sigma-dev commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Objective

If bevy_feathers is used without default features, then the built-in feathers icons arn't displayed with no warnings.

Solution

Add png feature flag to bevy_feathers since it has all it's widget icons as pngs.

An alternate solution would be to add a warning instead somehow.

Testing

Add a simple scene with FeathersDisclosureToggle (or any other icon using widget) and test it with no default features (but still necessary render features):

Pre-fix there will be nothing dispalyed but it will work fine post-fix.

(Example command for linux)

 cargo run --no-default-features  --features "bevy_winit,bevy_ui_render,scene,default_font,x11,bevy_state,bevy_asset,bevy_log,multi_threaded,async_executor,reflect_auto_register,bevy_feathers"

Fixes #24682

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy A-UI Graphical user interfaces, styles, layouts, and widgets S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it labels Jun 23, 2026
@alice-i-cecile alice-i-cecile added this to the 0.19.1 milestone Jun 23, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in UI Jun 23, 2026
@alice-i-cecile alice-i-cecile enabled auto-merge June 23, 2026 17:53
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jun 23, 2026
Merged via the queue into bevyengine:main with commit 6e93c2e Jun 23, 2026
51 checks passed
@github-project-automation github-project-automation Bot moved this from Needs SME Triage to Done in UI Jun 23, 2026
]
bevy_ui_render = ["dep:bevy_ui_render", "bevy_sprite_render", "bevy_ui"]
# Feathers ships its built-in icons as PNGs, so enable the PNG feature
bevy_feathers = ["dep:bevy_feathers", "png"]

@PPakalns PPakalns Jun 24, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry that I couldn't review this in time in github.

Shouldn't we place this requirement in bevy_feathers Cargo.toml as bevy_image = { workspace = true, features = ["png"] } ?

If library authors are developing debug UI using bevy_feathers with only required dependencies, this will not include bevy_internals crate and the png feature request will not be applied?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm really no expert in this kinda stuff, so i'll defer to anyone who knows better, thanks for the input.

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-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Missing bevy_feathers icons

3 participants