PHondogo
05/20/2022, 10:26 AMRob Smith
05/20/2022, 6:00 PMKavin Gupta
05/21/2022, 2:06 PMMichael Paus
05/22/2022, 10:19 AMe: …/CmpMapPane.kt: (132, 55): This API is experimental and is likely to change in the future.
How can I get rid of that and get my code compiled. I’ve added @OptIn(ExperimentalFoundationApi::class)
to the composable function on which I use the pointerInput modifier but IntelliJ is only telling me The opt-in annotation is redundant: no matching experimental API is used.
Yan Pujante
05/22/2022, 3:53 PMSlider
within a row does not work if the other elements in the row change sizes (see attached screenshot).
Code that demonstrates the behavior
fun main() = singleWindowApplication {
var zoom by remember { mutableStateOf(1f) }
Row {
Text(text = "Zoom = ${zoom}")
// Text(text = "Hello") // using a "static" text fixes the issue
Slider(value = zoom, valueRange = 0.25f..1.5f, onValueChange = { zoom = it })
}
}
Is this an expected behavior or is this a bug that I should report somewhere?David W
05/23/2022, 5:07 AMskiko-windows-x64.dll
is missing dependencies. They're on Windows 7 but have a x64 OS.jw
05/23/2022, 7:58 PMKavin Gupta
05/23/2022, 11:07 PMDragos Rachieru
05/24/2022, 9:20 AMlwjgl
, but I think it's too complex for me, I want to show a 3D
view only in a preview screen.
I tried using vtk
with java wrappers, but I can't make that work either(on my machine at least).
I was thinking about using https://github.com/google/filament but I don't know if it is supported, saw some threads from @romainguy about this, but haven't found an answerMichael Paus
05/24/2022, 12:50 PMDragos Rachieru
05/25/2022, 6:15 AMmy-app://...
spierce7
05/25/2022, 5:23 PMGuilherme Delgado
05/26/2022, 6:29 PM"src/jvmMain/resources"
I’ve my resources. If I run ./gradlew run
the app launches and I can use them, example: playSound(File("src/jvmMain/resources/sound.wav"))
. But when I create a distribution or a package those resources aren’t included. I can see them inside build/processedResources
but not in /build/compose/binaries/main/app/MyApp.app/Contents/app/resources
. I’ve tried this:
with(project.file("src/jvmMain/resources")) {
macOS { iconFile.set(resolve("icon.icns")) }
linux { iconFile.set(resolve("icon.png")) }
windows { iconFile.set(resolve("icon.ico")) }
appResourcesRootDir.set(project.layout.projectDirectory.dir(this.path)) //<<<<<<<<<<<<<
}
But with no luck, still can’t “find them”. Funny thing, the icons (iconFile
) are found and used 🤷♂️
Any hint? Thanks. I was looking into this docs.Josh Rose
05/27/2022, 6:55 PMLuis Alonso Ato Neyra
05/27/2022, 7:52 PMxxfast
05/29/2022, 2:46 AMExposedDropdownMenuBox
for desktop? looks like compose-jb@1.1.1
only has this for androidMain
https://github.com/JetBrains/compose-jb/issues/1673miguelsesma
05/30/2022, 8:13 AMVideoPlyer
demo in a macbook M1?
Even having VLC installed I get this error:
dlopen(/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib, 0x0009): tried: '/Applications/VLC.app/Contents/MacOS/lib/libvlccore.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Cody Mikol
05/30/2022, 5:56 PMlazt omen
05/30/2022, 6:10 PMdallas
05/30/2022, 11:13 PMjava.awt.Image
so I can save it as a PNG?xxfast
05/31/2022, 1:00 AMcommonMain
hereKirill Grouchnikov
05/31/2022, 1:58 PMOur plans regarding 1.1.2/1.2 are changed, and scope of it will be revised.
@Igor Demin - is this something that you can comment on in a bit more detail?samuel
06/01/2022, 11:49 AMFont transform has NaN position
. Before i look into filing a bug report, has anyone experienced this?Cody Mikol
06/02/2022, 2:19 AMAaron Yoder
06/02/2022, 10:19 AMBox(
modifier = Modifier.height(48.dp)
.fillMaxWidth()
.background(color = backgroundColor, shape = RoundedCornerShape(4.dp))
.border(border = if(selected) BorderStroke(4.dp, Color.Black) else BorderStroke(0.dp, Color.Transparent), shape = RoundedCornerShape(4.dp))
.clip(RoundedCornerShape(4.dp))
.selectable(selected = selected, onClick = { onClick.invoke(index) }),
contentAlignment = Alignment.Center
)
Alexander Maryanovsky
06/02/2022, 12:38 PMClassPath.allClasses
, but that seems a bit much.miguelsesma
06/02/2022, 2:24 PMDragos Rachieru
06/02/2022, 4:30 PMspierce7
06/03/2022, 1:30 AMlibgl1-mesa-glx
and libfontconfig
.
Image generation is slower on a server than a laptop, which is a little unexpected, but I suspect it’s because all rendering is being done with a CPU, and no GPU. As things stand I’m generating simple 4k images in ~300 - 500 millis.miguelsesma
06/03/2022, 10:36 AMSwingPanel
. Unfortunately it does not work because as stated in the documentation, SwingPanel is on top.
The Swing component is placed on top of the Compose layer (that means that Compose content can't overlap or clip it).
Any ideas of how to circumvent this limitation?