Hello everyone. I am currently developing a plugin...
# intellij-plugins
t
Hello everyone. I am currently developing a plugin using Compose. And i just wondering if it is possible to know if the IDE is in darkmode so i can use different color scheme. Or if it is possible to use the IDE color scheme. I know the sample code and it gets at least the background color of the IDE.
a
from where can I start with plugins built with compose ?
b
do you know what "CFD" means in this project?
t
It means Compose For Desktop
b
oh of course πŸ™‚ Thanks!
🦜 1
I'll link this too: https://github.com/JetBrains/jewel I haven't used it (yet), I just know it exists and probably useful to build IJ plugins in Compose with a theme that matches the rest of the IDE.
πŸ’― 1
t
Oh yes you are right. Thanks. They talked about this at the Droidcon London keynote. I will have a look
πŸ‘ 1
Unfortunately there are some problems. In intellij 2024.3 and Android Studio 2024.3 it works fine. But the stable AS version is 2024.2. And when i use Jewel jewel-ide-laf-bridge-242:0.27.0 which is for 2024.2 the light/darkmode detection is not working properly. So maybe i will only support AS 2024.3 Not sure my plugin is for Multiplatform projects. So maybe most of the developers would use Intellij?
b
so the latest AS Canary 6 is based on 2024.3... I don't know when that will become the stable one, I guess in a few months πŸ™‚
depending on your audience it may be fine to say for now the plugin is only compatible with the Canary version of AS
πŸ‘ 1
c
let me know if anyone gets traction on developing a plugin via jewel. ive tried a handful of times and always get issues that prevents me from developing my plugin 😭 ive got another possible plugin project in about a month and would love to actually use jewel as a first class citizen
πŸ‘ 1
b
Last time I heard about thisz somebody from JetBrains said "stay tuned" 😊
c
yeah. i feel like i was hearing murmurs of that as well. but i always feel like i might be out of the loop and miss some important announcement. its a shame because i have so many small utilities i would love to share with my team in a great plugin for AS
t
The code is already moved into the main repo from intellij. I working now several weeks on my plugin and its getting better i would say. I also do compile now version for Android Studio Ladybug and Meerkat with CI.
c
so if i needed a place to start for a jewel plugin that supports current stable android studio. do I need to checkout the code from intellij repo? or can i do that from github jewel project?
t
They just moved the code to the other repo. You do not have to compile the code. So just import the dependencies. But there are many things to keep in mind. So you should follow the instructions from the README closely.
c
readme in the jewel repo... right?
t
Yes exactly. It is a long readme but you should read all.
c
gotcha. appreciate your teaching
t
Just fixed an issue because i did skip this https://github.com/JetBrains/jewel?tab=readme-ov-file#swing-interoperability section because it was working. But adding
enableNewSwingCompositing()
before creating the Panel fixed an issue in Android Studio Ladybug rendering.
βž• 1
I also now aligned the Compose and kotlin version with jewel and i think it runs more stable now. But i am not sure if this is really needed.
βž• 1