https://kotlinlang.org logo
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
  • s

    Spikey Sanju

    06/13/2021, 8:02 PM
    Hello all, Is there any way to
    save composable view
    as
    Image
    ?
    t
    k
    • 3
    • 4
  • b

    B bis

    06/14/2021, 12:07 PM
    Hi All, Is there any way to set minimum window size ?
    j
    i
    s
    • 4
    • 7
  • k

    Konyaco

    06/14/2021, 12:36 PM
    Why not use Popup to implement Material AlertDialog?
    k
    s
    j
    • 4
    • 10
  • x

    xxfast

    06/15/2021, 2:37 AM
    Hi all - I’ve used the package task to generate an
    .app
    artefact for macos. But when i open it - it does not open the main window. The window does open through Android Studio runtime configurations, but not when packaged for some reason. I’ve attached the compose desktop build script in the thread, am i missing anything here?
    j
    • 2
    • 9
  • g

    gaetan

    06/15/2021, 1:46 PM
    I did some tests about the rendering performances of Compose-desktop. Pretty good! https://dev.to/gz_k/jetpack-compose-desktop-rendering-performances-4992
    🔥 18
    :kotlin-intensifies: 3
    t
    r
    s
    • 4
    • 6
  • i

    Ivan Pavlov

    06/15/2021, 8:15 PM
    Is there a date picker component?
    o
    • 2
    • 2
  • a

    amr s

    06/16/2021, 1:41 AM
    Is there a compose web channel?
    c
    • 2
    • 1
  • s

    saket

    06/16/2021, 2:55 AM
    Can I create App Extensions on macOS in a Compose app? For example, I'd like to register my app as a share extension. https://developer.apple.com/design/human-interface-guidelines/macos/extensions/share-extensions/
    o
    l
    • 3
    • 5
  • s

    saket

    06/16/2021, 2:55 AM
    As a general question, is there a standard pattern of handling platform specific usecases that aren't supported by Compose yet?
    o
    u
    • 3
    • 2
  • m

    Michał Kalinowski

    06/16/2021, 11:01 AM
    From what I understand Skia works fine with a random OpenGL context via
    BackendRenderTarget
    but OpenGL cannot be easily initialised with Skia(at least not so easily). And I'm wondering if there is any objection to add an manual initialization of the graphics api context in desktop-compose to make both things compatible? Or maybe is it already planned? Or am I wrong and it isn't that simple?
    o
    • 2
    • 3
  • d

    darkmoon_uk

    06/16/2021, 12:40 PM
    I'm playing with SVG loading via
    svgResource
    and finding that it plainly does not resize as expected. Currently only trying on Retina MacBook Pro so wondering if screen DPI is playing a part? Anyone tried this? I set a background colour via Modifier to see the layout of the Image element and that is correct; but the SVG itself never scales within, regardless of
    ContentScale
    passed in 🤷
    i
    • 2
    • 19
  • b

    B bis

    06/16/2021, 2:31 PM
    Hi All, I am trying to open a web page(third party registration url) inside from a composable section and interacted with that. So I tried with cef example. But its not working. Its provide the following
    SkIcuLoader: datafile missing: C:\Users\kishan.thakar\.jdks\corretto-11.0.11\bin\icudtl.dat.Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: *no chrome_elf in java.library.path:*
    Is there any other option that I can try ?
    o
    • 2
    • 1
  • s

    saket

    06/17/2021, 1:48 PM
    FWIW I was able to create a deeplink on macOS by manually modifying my packaged app’s
    Info.plist
    and adding these entries:
    <key>CFBundleURLTypes</key>
    <array>
      <dict>
        <key>CFBundleURLName</key>
        <string>PACKAGE NAME OF YOUR APP</string>
        <key>CFBundleURLSchemes</key>
        <array>
          <string>SCHEME OF YOUR DEEPLINK</string>
        </array>
      </dict>
    </array>
    This deeplink can be handled by using
    Desktop.getDesktop().setOpenURIHandler()
    . Of course modifying the file manually after each build is terrible so we’d need a way for compose to provide a hook for modifying
    info.plist
    . This looks related to: https://github.com/JetBrains/compose-jb/issues/773
    o
    • 2
    • 2
  • d

    Daniele B

    06/17/2021, 11:08 PM
    I am trying to investigate the following way for defining multiplatform composables: • creating a new project called “*composables*” as multiplatform, with 3 sourcesets: ◦ commonMain (with composables used by all) ◦ materialMain (with composables used by Android and Desktop), as JVM ◦ webMain (with composables just used by Web), as JS However, I am getting some errors, as I guess I have missed something (maybe a lot) in my gradle file definition. Does this approach make any sense to you?
    a
    r
    +2
    • 5
    • 22
  • k

    Krzysztof

    06/18/2021, 9:47 PM
    Hello all 👋 I'm very new to Compose. I need to create a desktop application which mostly shows data on tile maps. I didn't find any existing controls for it and I'd like to create one. I have however hard time wrapping my head around how do I do that in Compose. Basically I need a rectangle pane, in which I show grid of images. The pane must react to dragging with mouse (move map around) and scrolling (zoom in and out). On top of the pane I want to draw markers - circles and polylines. It is easy for me to think of implementation if I just have a 2D canvas on which I can draw as in Swing. What do I need to read about in Compose to better understand how to implement it? I think good starting points into the topic are: • How do I detect dragging? • How do I draw custom shapes on top of grid of images?
    s
    m
    v
    • 4
    • 8
  • a

    Arac Rado

    06/18/2021, 11:45 PM
    Hello. Noob question. How do I export the app for desktop. I don't see any options
    • 1
    • 2
  • c

    Clament John

    06/19/2021, 6:46 AM
    Is there a way to update a Kotlin Compose for desktop application? Or is there a way to update a swing application? Like how electron.js can update an app using update.electronjs.org
    c
    t
    • 3
    • 8
  • a

    Arac Rado

    06/19/2021, 4:11 PM
    Is it possible to run any commands from compose apps. terminal/command line commands
    t
    b
    • 3
    • 5
  • g

    gbaldeck

    06/19/2021, 5:04 PM
    Is there a way to cancel the on dismiss request to a window? for example, when the user clicks the X in the window frame I would like to show a popup confirming the close in some circumstances. If the use clicks "no" on the popup it should cancel the dismiss request
    d
    • 2
    • 4
  • a

    Adam Brown

    06/19/2021, 7:32 PM
    being able to just produce an exe, no jvm required, would be a very nice feature to have
    e
    a
    s
    • 4
    • 9
  • s

    Spikey Sanju

    06/20/2021, 9:07 AM
    Hello all, Whenever I try to run
    package task
    . My
    Deb
    &
    Msi
    builds are getting
    SKIPPED
    . Is there any workaround solution for this?
    j
    • 2
    • 1
  • s

    Slackbot

    06/20/2021, 11:56 AM
    This message was deleted.
    c
    o
    • 3
    • 2
  • d

    Dominaezzz

    06/20/2021, 12:04 PM
    Has a
    rememberSerializable
    (that works using
    kotlinx.serialization
    ) ever been considered? I find the bundle requirements for
    rememberSaveable
    a bit awkward/type unsafe outside Android.
    a
    a
    • 3
    • 3
  • d

    David Dupraz

    06/21/2021, 7:26 AM
    Hello, is there a "on hover" property in Compose Desktop ? I'd like to detect the mouse over an element, not the click
    t
    c
    • 3
    • 3
  • l

    Lavanya Kasina

    06/22/2021, 4:07 AM
    Hello, is there a way to support internationalization on desktop-compose for various string constants?
    👍 1
    a
    v
    • 3
    • 3
  • i

    Igor Demin

    06/22/2021, 9:08 AM
    Composable Window API breaking changes in 0.5.0-build226: 1.
    Window(onCloseRequest=)
    is required parameter now 2.
    WindowState.isMaximized
    ,
    WindowState.isFullscreen
    are merged to
    WindowState.placement { Floating, Maximized, Fullscreen }
    3.
    WindowPosition
    is sealed class
    { PlatformDefault, Aligned, Absolute }
    ,
    initialAlignment
    removed from Window/Dialog
    👍 4
    ✅ 10
    • 1
    • 1
  • g

    Glen

    06/22/2021, 10:37 AM
    Implementation of first version of non-interactive preview in CfD 👀 https://github.com/JetBrains/compose-jb/pull/803/files
    o
    t
    • 3
    • 11
  • m

    Michał Kalinowski

    06/22/2021, 11:07 AM
    Are there any plans to write a nice abstraction layer so that the user is not forced to use swing but can implement what he wants to use himself?
    i
    s
    • 3
    • 2
  • m

    Michał Kalinowski

    06/22/2021, 11:07 AM
    and why in the desktop-compose code there are so heavy side-effects at initialisation in the main components (DesktopOwner, DesktopOwners, ComposeLayer) this looks a bit like a smell code
    i
    o
    +3
    • 6
    • 14
  • d

    Dominaezzz

    06/22/2021, 7:18 PM
    How does one pass arguments to the
    run
    task?
    i
    • 2
    • 6
Powered by Linen
Title
d

Dominaezzz

06/22/2021, 7:18 PM
How does one pass arguments to the
run
task?
i

Igor Demin

06/22/2021, 7:39 PM
You can use jvmArgs
d

Dominaezzz

06/22/2021, 7:40 PM
Can that be used from IntelliJ run configuration? I want to specify a personal info that I don't want to commit to the repo.
By personal, I just mean my home directory,
/home/dominic
which won't work everwhere.
i

Igor Demin

06/22/2021, 7:45 PM
If we specify argument in a run configuration it will be passed to the Gradle process. In the Gradle we can access it like
System.getProperty("prop")
and pass to
jvmArgs
pass to  
jvmArgs
jvmArgs("-Dprop=${System.getProperty("prop")}")
✅ 2
d

Dominaezzz

06/22/2021, 7:47 PM
Ahhh that works, thanks!
View count: 8