https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
compose-desktop
  • m

    Michael Paus

    07/18/2021, 6:13 PM
    For those who are interested. I just tested
    org.jfree.skija.SkijaGraphics2D
    , which is an AWT Graphics2D implementation based on Skija, together with Compose. You can use this, e.g., to make a graphics or charting library based on AWT directly available in Compose Desktop. See: https://github.com/jfree/skijagraphics2d/issues/1#issuecomment-882091866
    :kotlin-intensifies: 10
    o
    • 2
    • 2
  • n

    Nik

    07/19/2021, 1:17 PM
    Does anyone know of a method for adding files to the
    Resources
    folder for the macOS .DMG from our
    build.gradle.kts
    ? I have an application which performs file I/O (ultimately to run
    .sh
    scripts for a variety of tasks) and I’m having trouble locating those files once the application is installed, as
    File(".")
    gives me the macOS root directory
    /
    , not the same file structure as when running the application in IntelliJ
    j
    s
    • 3
    • 5
  • g

    gbaldeck

    07/19/2021, 2:43 PM
    I'm having an issue in my code where the Ctrl+A keyboard shortcut is not being detected. I've used a breakpoint to test if the function passed to
    onPreviewKeyEvent
    is being run but it is not. The row has been selected and focused on so I'm not sure what exactly is going wrong. Here is a link to the exact line of code. Why are the keyboard presses not being detected? https://github.com/recursivelftr/Grim-Locations/blob/d675a9a5859e320e833e8aa0fcb85[…]lin/io/grimlocations/ui/view/component/LocationListComponent.kt
    i
    • 2
    • 3
  • k

    kevindmoore

    07/19/2021, 3:44 PM
    I'm trying to create a desktop-compose module for my kotlin multiplatform project but the compose module doesn't seem to see the shared project. I've included it in the gradle file but for some reason it can't see the files. Is there something that is preventing it?
    a
    • 2
    • 1
  • o

    orangy

    07/19/2021, 5:23 PM
    SVGPainter
    seems to ignore
    Density
    for stroke width, and uses it for
    intrinsicSize
    only. It makes rendering inconsistent – graphics appear too thin. Is it a known issue?
    ✅ 1
    i
    • 2
    • 6
  • g

    gbaldeck

    07/20/2021, 1:44 AM
    Hi all, I am struggling with properly capturing keyboard strokes with compose for desktop. I followed the instructions here and here. Then this is my code. I have tried many different approaches but nothing I do seems to register the keystrokes. If someone with some expertise on it could take a look I'd be grateful.
    i
    • 2
    • 2
  • k

    Kanika Kachhawaha

    07/20/2021, 6:10 AM
    Hi All, Is there a mechanism to use ConstraintLayout as a parent layout in compose for desktop.
    a
    • 2
    • 2
  • h

    hfhbd

    07/20/2021, 6:54 AM
    Hey, why does
    build-253
    still require
    1.5.10
    and not
    1.5.21
    , after its merge last friday?
    ✅ 1
    ➕ 1
    👀 2
    a
    i
    • 3
    • 5
  • m

    mcpiroman

    07/20/2021, 3:17 PM
    Hi, When I insert an item into list displayed via `Column`all subsequent elements are recomposed, meaning that if I insert at the end everything's fine but when I insert at the beginning there is a huge delay. Doesn't matter if I use `mutableStateOf`or
    mutableStateListOf
    , whether I use `key`function or not (though it does feel like it affects performance somewhat). I don't use `LazyColumn`because it is laggy in general. Known problem, walkaround? Thanks.
    d
    • 2
    • 8
  • s

    SrSouza

    07/20/2021, 8:00 PM
    Hi folks, there is tab-navigation in compose desktop?
    o
    o
    r
    • 4
    • 9
  • s

    Steve

    07/21/2021, 10:50 AM
    Hey I am using build 0.4.0-build182 and I’ve seen an issue that key event for Key.TAB is not working in this version. Is the Key.TAB working in the new build 0.5.0-build262?
    a
    • 2
    • 2
  • f

    Frank

    07/21/2021, 12:31 PM
    Hi! I’ve updated my Jetpack Compose Desktop - Plugin in IntelliJ and now the Preview doesn’t work anymore. The spinner is there forever and I don’t see any rendered content. I get the following message from IntelliJ when I click on the Preview-Button: Compose Desktop Preview may be incompatible with provided Compose Gradle plugin. Please use matching versions. What would be the matching version? Right now I have this:
    id("org.jetbrains.compose") version "0.5.0-build235"
    ✅ 1
    a
    • 2
    • 2
  • a

    avijitkarmakar

    07/21/2021, 5:37 PM
    How to set the publisher information for the binary EXE file in Compose for Desktop? I am generating the binary EXE file using the packageExe gradle task.
    o
    • 2
    • 3
  • h

    hfhbd

    07/22/2021, 2:38 AM
    message has been deleted
    o
    i
    j
    • 4
    • 6
  • m

    mcpiroman

    07/22/2021, 9:58 AM
    Has anyone encountered messages like:
    Graphics card: Microsoft Basic Render Driver is blacklisted.
    Failed to create DirectX12 device.
    Failed to create Skia Direct3D context!
    when running compose-desktop apps?
    s
    o
    j
    • 4
    • 5
  • k

    kevindmoore

    07/23/2021, 3:51 AM
    I’m getting the following error trying to build a very simple Desktop compose app:
    org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during psi2ir
    File being compiled: The root cause java.lang.IllegalStateException was thrown at: org.jetbrains.kotlin.ir.symbols.impl.IrBindablePublicSymbolBase.bind(IrPublicSymbolBase.kt:58)
    k
    o
    a
    • 4
    • 12
  • f

    Frank

    07/23/2021, 3:11 PM
    I there a way to use Android Live-Data in Jetpack Compose Destkop?
    b
    a
    +2
    • 5
    • 47
  • g

    Glen

    07/23/2021, 7:13 PM
    Hello everyone. Please, is there a possibility for generating a .AppImage from a desktop compose project? Or should I write like, a custom gradle task for it? Thanks.
    b
    • 2
    • 6
  • c

    Christian Babsek

    07/24/2021, 11:34 AM
    Good afternoon, I have a question concerning the new Jetpack Compose version (build 262). In the past, I was able to use LocalAppWindow.Keyboard.setShortcut and set key combinations of multiple keys (with the overloaded plus operator, it now seems to have changed to the onKeyEvent which just allows me to intercept a single key. Is there still a way to catch combinations of multiple keys pressed at the same time? (I know the possibility of finding out if for example ctrl is pressed). Thank you very much 🙂
    👍 1
    👀 2
    a
    • 2
    • 2
  • s

    spierce7

    07/26/2021, 1:09 AM
    What is the best way on Compose Desktop to implement pressing the
    Tab
    key and having it go to the next form field?
    👀 2
    o
    d
    • 3
    • 4
  • s

    spierce7

    07/26/2021, 4:59 AM
    I’ve been working on a desktop compose app for a while, and I just tried compiling it to a osx DMG today. When I try and run the app, it just hops up and down and then closes. I have some folders that almost definitely aren’t being packed into the DMG. Two questions: 1. What’s the best way to get output or logs from a compiled Desktop application? 2. How do I pack additional asset folders into the executable?
    ➕ 1
    r
    o
    +2
    • 5
    • 10
  • r

    rsktash

    07/26/2021, 3:14 PM
    Hi, why I’m getting this error message? kotlin: 1.5.10 compose: 0.5.0-build235 gradle: 7.1
    j
    • 2
    • 4
  • n

    Nik

    07/26/2021, 8:31 PM
    Any idea if I could reference `
    compose.desktop.application.nativeDistributions.packageVersion
    from my application’s Kotlin code? Hoping to do some concept of min-app communication with one of our Docker images and it would need us to pass along what version of the Compose application is being used from the application’s code itself
    r
    s
    • 3
    • 3
  • s

    Stefan Oltmann

    07/27/2021, 6:24 AM
    What is your solution to get the version number for the about dialog? Is there a standard way like Androids "BuildConfig" or do I need to implement something on my own?
    ✅ 1
    o
    m
    +2
    • 5
    • 8
  • i

    Ignor Warneengs

    07/27/2021, 5:24 PM
    Windows + 2 Screen -> Did anybody figure out how to lunch the desktop compose window on a specific screen if existing ? :)
    🥪 1
    👀 1
    i
    m
    • 3
    • 3
  • j

    Joey Heck

    07/28/2021, 6:18 PM
    When I launch my Window or singleApplicationWindow, it opens a new tray icon. Can I have the main icon be used?
    i
    • 2
    • 13
  • d

    dbaelz

    07/28/2021, 6:34 PM
    Is the
    androidx.compose.material.AlertDialog
    not longer supported with the new Composable Window API? Switched to the new API and the AlertDialog crashs with
    java.lang.IllegalStateException: CompositionLocal LocalAppWindow not provided
    . When it isn't longer support, I assume the
    androidx.compose.ui.window.Dialog
    is the way to go for all kinds of Dialog?
    i
    • 2
    • 4
  • p

    patrickdelconte

    07/29/2021, 7:49 PM
    Does anyone here have an idea how to use proguard with compose desktop?
    s
    • 2
    • 3
  • s

    smallshen

    07/30/2021, 12:05 AM
    I saw Jetbrains Toolbox is built with Jetpack Compose, are there implementation of RingUI with it? I think ToolBox is designed in RingUI
    a
    o
    • 3
    • 4
  • s

    SrSouza

    07/30/2021, 12:19 AM
    Jetbrains Toolbox is also publishing for linux with AppImage, would be awesome to see Compose for Desktop support AppImage in the gradle plugin
    ➕ 3
    s
    • 2
    • 1
Powered by Linen
Title
s

SrSouza

07/30/2021, 12:19 AM
Jetbrains Toolbox is also publishing for linux with AppImage, would be awesome to see Compose for Desktop support AppImage in the gradle plugin
➕ 3
s

suresh

07/30/2021, 4:00 AM
https://twitter.com/kropp/status/1417034385455554561?s=19
View count: 13