kotlin-libui icon indicating copy to clipboard operation
kotlin-libui copied to clipboard

Compose POC

Open Dominaezzz opened this issue 1 year ago • 3 comments

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 and tabLabel.

A lot of the group widgets don't map nicely to compose but there are workarounds at least.

Dominaezzz avatar Aug 22 '23 19:08 Dominaezzz

Great job! Any ideas how it could evolve?

e13mort avatar Aug 29 '23 20:08 e13mort

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.

Dominaezzz avatar Sep 24 '23 20:09 Dominaezzz

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?

KotlinGeekDev avatar Oct 13 '23 21:10 KotlinGeekDev