Open Dominaezzz opened 1 year ago
Great job! Any ideas how it could evolve?
Hi @e13mort, must've missed the notification. I haven't really looked at this much since I've made the PR. I'm not sure this could evolve very far tbh. libui is too rigid for Compose. Having to recreate a parent every time some component is added/removed from the composition feels kinda ridiculous.
Please @Dominaezzz what do you think of projects like Calf and Compose-look-and-feel? Are they ways to evolve what this PR aims to do?
Starts #40 .
I've only tried this on Linux. I'm curious to see if this works on other OSes, as I can't currently test this.
Just run any of these:
./gradlew :libui-compose:runReleaseExecutableLinux
./gradlew :libui-compose:runReleaseExecutableMacosx
./gradlew :libui-compose:runReleaseExecutableWindows
I managed to support some widgets and groups however there's quite a few bits missing. I'm not sure how to pass group widget attributes from the child to the parent's applier. Stuff like
isStretchy
andtabLabel
.A lot of the group widgets don't map nicely to compose but there are workarounds at least.