mirror of
https://github.com/bevyengine/bevy.git
synced 2026-07-01 08:12:51 -04:00
ea06f80230
This adds properties to the `FeathersColorSwatch` SceneComponent to allow specifying a percentage of the swatch to remain opaque. This is useful for color-pickers and generally handling colors with alpha channels. The property value will default to 0% so no migration guide is needed. # Objective - Allow a single `FeathersColorSwatch` to display the selected color with and without its alpha channel. ## Solution - Adds `FeathersColorSwatchProps` to allow dedicating a percentage of the swatch area to the opaque color value ## Testing Updated the `feathers_gallery` example to display the `rgba` color swatch with 30% dedicated to the opaque color. --- ## Showcase <img width="1280" height="720" alt="Screenshot_2026-06-15_21-09-53" src="https://github.com/user-attachments/assets/1b3405f5-973b-42fb-abd5-b08c39c59cb6" />