UkoeHB / bevy_cobweb_ui

Asset-oriented UI framework for Bevy
Apache License 2.0
38 stars 3 forks source link

Remove sickle_ui dependency #2

Closed rudderbucky closed 4 weeks ago

rudderbucky commented 1 month ago

This PR removes the sickle_ui dependency

UkoeHB commented 1 month ago

Also, drag/drop/resize/scroll_interaction.rs can be removed. They are not currently used in this crate (although I may resurrect them in the future).

UkoeHB commented 1 month ago

If you move sickle/assets/fonts to src/builtin/assets/fonts then it looks like we can remove the src/sickle module (might need to add plugin stuff to src/sickle_ext/plugin.rs). Move src/sickle_ext/default_assets.rs to src/builtin/assets/fonts.

eidloi commented 1 month ago

Ultimately, sickle_macros needs to be removed. But extracting that from the theming framework will be some work. Similarly, most of ui_builder.rs and theme.rs (scaffold) needs to be removed, but will take some work. Can leave those for a different PR/commits.

you don't need the event_handler from the macros for sure and you can probably just remove the ui_context and default_theme since you aren't using it I think.

As for the style_command, it generates about 12kloc if I remember correctly and is the backbone of managing the styles (it generates all the style commands and their implementations). You can probably remove the interactive / animated parts if you have a different driver and port the rest to 0.15 in a new crate (unless you have a better solution to bind the values).

Ping me if you need help with any of that.

UkoeHB commented 4 weeks ago

As for the style_command, it generates about 12kloc if I remember correctly and is the backbone of managing the styles (it generates all the style commands and their implementations). You can probably remove the interactive / animated parts if you have a different driver and port the rest to 0.15 in a new crate (unless you have a better solution to bind the values).

I don't mind keeping the core style_command (minus interactive/animations). It's already built-out, working, and tightly scoped, so maintenance should be pretty low.