Questions tagged [compose-desktop]
Compose for Desktop is modern toolkit for building native declarative UI made by JetBrains. It's based on Google's Jetpack Compose
compose-desktop
191
questions
-2
votes
0
answers
13
views
compose for desktop: How to drag the entire window while hiding the title bar?
How to create an exe program with compose for desktop and implement the function of dragging the window while hiding the title bar?
2
votes
0
answers
31
views
Issue when creating distributable for compose desktop with ProGuard enabled
I am working on a personal Compose Desktop project, and I want to enable ProGuard's code obfuscation feature. I found a tutorial on JetBrains' GitHub page, and I altered build.gradle.kts file to ...
0
votes
0
answers
18
views
How to use Proguard code obfuscation with Compose Desktop? [duplicate]
I'm going to build a compose desktop application using compose multiplatform framework and wanted to obfuscate code using ProGuard. And on their GitHub page, they also had a tutorial about ways to ...
3
votes
2
answers
110
views
How to create a draggable and rotatable box in Jetpack Compose?
I'm working on a Jetpack Compose application and I want to create a Box that can be both dragged and rotated using mouse interactions. I should be able to click and drag the entire Box to move it ...
0
votes
0
answers
40
views
How to Add Room Library to a Compose Desktop App Created with IntelliJ IDEA Built-in Wizard?
I'm making a Compose Desktop app using IntelliJ IDEA Community Edition. I started the project with the built-in wizard (not the web version). I'm having trouble finding clear instructions on how to ...
1
vote
2
answers
189
views
How to take output for Desktop and Web in Compose Multiplatform?
I am currently working on a Compose Multiplatform project. As a mobile app developer, I am able to build APK file for Android and IPA file for iOS.
Now, I want to generate output for desktop ...
0
votes
0
answers
38
views
How to force a Jetpack Compose Desktop text to display █ with full height and width of the "text cell"
I'm trying to achieve a similar effect like in terminal, where █ looks like a space with filled background.
My current code looks like this:
@Composable
fun myComposable(){
val res = "██\n ██...
1
vote
1
answer
54
views
Draw on Compose canvas by pixels
I have an image encoded as 2D array of colors like this:
val pixels = arrayOf(
arrayOf(color1, color2,... colorN),
...
)
I would like to draw it pixel-by-pixel on Compose Canvas (desktop ...
0
votes
0
answers
25
views
TextLayoutResult.getOffsetForPosition() return bad values in Compose Desktop
I am trying to setup a composable that gives me the actual hovered character of its text. To do this, initially I configured hover ability by defining the onPointerEvent modifier for a standard Text ...
1
vote
1
answer
62
views
After sorting a list LazyColumn recomposes, but right after that, recomposes again reverting the sort order
In my View composable I have a list of items in a LazyColumn and a "Sort" button that toggles between ascending and descending sort order. The list comes from my state holder class ...
4
votes
1
answer
384
views
Main dispatcher is missing on Compose Desktop
Trying to integrate Jetpack ViewModel into KMP project.
With the following configuration, desktop app cannot be compiled (error bellow).
libs.versions.toml
androidxLifecycle = "2.8.0"
koin-...
0
votes
2
answers
86
views
Add custom Gradle task after packaging of Compose Desktop app
I'm building a desktop application with Jetpack Compose and found that when I package the app for macOS, it requires a manual step to set executable permission on the app binary. To remove this manual ...
0
votes
0
answers
42
views
Create and Run Task When Installing/Uninstalling Compose Desktop App
I am working on a Compose Desktop App and wonder how do I run some tasks like create a shortcut in Window Start Menu Folder after the installation, and delete some files when uninstalling.
Or is there ...
0
votes
1
answer
81
views
"Failed to Launch JVM" after packaging
"Failed to Launch JVM"
This error only occurs after packaging and trying to execute the exe, after installing the msi.
the error will only exist if i put a db connection in the code
im using:...
0
votes
1
answer
108
views
compose-desktop app import error by using vico charts plugin
The import of a specific library (vico) isn't working after implementing into the build.gradle file.The Library is added, but cannot be used. I already used different kotlin, compose or library ...