talaria-im / talaria

<insert buzzwords> instant messaging application
Mozilla Public License 2.0
6 stars 0 forks source link

Desktop UI architecture #6

Open 9ary opened 3 years ago

9ary commented 3 years ago

The desktop UI should be consistent with the Android version. Ideally, we should be able to share layouts for both frontends.

Toolkit

Seems like we're leaning towards Qt but that's not set in stone yet. Kirigami also looks interesting.

9ary commented 3 years ago

Looks like the Jetpack Compose library for Android is getting ported to the desktop: https://www.jetbrains.com/lp/compose/ Distributing JVM applications for the desktop doesn't look too bad: https://github.com/JetBrains/compose-jb/tree/master/tutorials/Native_distributions_and_local_execution Let's also keep an eye out for Kotlin/Native support: https://discuss.kotlinlang.org/t/jetpack-compose-for-all/16024

Compose looks like a really nice framework for GUI programming, and if we can wholesale use the same GUI code on all platforms, that would make things significantly easier for us. There's no real downside to using it on Android, and nothing forces us to use it on desktop, but with K/N support (=> no dependency on the JVM), it should be a solid choice.