Lucas
07/07/2023, 10:05 PMLefix2
07/08/2023, 8:01 PMJordy
07/08/2023, 10:01 PMAlexander S
07/09/2023, 9:17 PMModifier#pointerInteropFilter
, but that method doesn't exist, which means I don't know how to get access to MotionEvent
. Any and all help will be greatly appreciated!Jordy
07/09/2023, 9:44 PMLazyVerticalGrid
? I’d like the “Hello darkness my old friend, I’ve come to talk with you again” message to scroll as well when the user scrolls thru photo’sJordy
07/09/2023, 10:55 PMAyla
07/10/2023, 5:38 AMGiuliopime
07/11/2023, 4:51 AMapplication
block?
For example
application {
val settingsStorage = remember {
OfflineSettingsStorage()
}
Window(
title = "ZenBreak settings"
) {
MainView(// Params...)
}
When does the application block recompose? And is it safe if we use remember then?Giuliopime
07/11/2023, 9:24 AMDp
• opening the window on top of the current application
Seems like on electron there is this option which is what I need:
breakWindow.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true });
// Or maybe it's this one
breakWindow.moveTop();
Is this possible with swing and compose?
Otherwise if it’s not possible
• how can I request focus on the window so that the user gets moved to it?spierce7
07/11/2023, 4:15 PMAlejandro Rios
07/12/2023, 2:02 AMfloatUniform
effect for a runtime shader in desktop?Pragnesh Meniya
07/13/2023, 12:38 AMDaniele B
07/13/2023, 8:44 AMGiuliopime
07/13/2023, 1:01 PM@Composable
fun BreakPopup(
duration: ZbTimeData,
onTimeFinished: () -> Unit,
) {
var progress by remember {
mutableStateOf(1F)
}
val animatedProgress by animateFloatAsState(
targetValue = progress,
animationSpec = tween(
durationMillis = duration.millis.toInt(),
easing = LinearEasing
),
finishedListener = {
onTimeFinished()
}
)
LaunchedEffect(Unit) {
progress = 0F
}
// Etc...
RoundedCornersCircularProgressIndicator(
progress = animatedProgress,
color = textColor,
strokeWidth = 8.dp,
modifier = Modifier
.fillMaxSize()
.padding(8.dp)
)
And I show it in a simple window
Window(
visible = isPopupWindowVisible
) {
BreakPopup(message = settings.value.breakMessage,
duration = settings.value.breakDuration,
onTimeFinished = {
isPopupWindowVisible = false
},
)
}
I’m encountering a weird issue where the composable doesn’t seem to get disposed when the window is not visible anymore, because the first time it works correctly, while from the second time and on the progress is already at 0F
, and it seems like it’s holding the same composable with the old values instead of recreating it when the window is not visible anymorexxfast
07/13/2023, 10:22 PMcompose-multiplatform@1.5.0
to be promoted to stable and released? Wanting to pull this in for my prod project but slow maven instance from jetbrains dev space ("maven(<https://maven.pkg.jetbrains.space/public/p/compose/dev>)"
) is making me reluctant to jump on right away.Colton Idle
07/15/2023, 4:05 AMmohamed rejeb
07/16/2023, 9:18 AMSunil Kumar
07/16/2023, 6:13 PMAlexander S
07/17/2023, 8:57 PMdata class PointPath(
val pathPoints: List<PathPoint>,
) {
fun smoothPath(): PointPath { ... }
}
I made the data class immutable since recompositing isn't triggered when the list is updated and made it so anything that modifies it returns a copy (ex. smoothPath
). However, this feels very cumbersome since I need to manually update the state with the returned copy. Is there a more effective way to do this, especially when it comes to handling the state when object properties change?Kirill Grouchnikov
07/18/2023, 7:23 PM1.5.0-dev1084
is still on the old implementation of modifierseygraber
07/19/2023, 3:04 AMNuru Nabiyev
07/20/2023, 7:39 PMMichael Paus
07/21/2023, 10:32 AMException in thread "main" java.lang.VerifyError: Instruction type does not match stack map
Exception Details:
Location:
androidx/compose/animation/core/AnimationSpecKt.estimateAnimationDurationMillis(FFFFF)J @604: dstore
Reason:
Type top (current frame, locals[68]) is not assignable to double (stack map, locals[68])
Has anybody else observed a similar behaviour?
Issue: https://github.com/JetBrains/compose-multiplatform/issues/3387Jorn Hertsig
07/23/2023, 9:01 AMAnnotatedString
, using withAnnotation(UrlAnnotation(myUrl)) { append("my text") }
, and with withAnnotation("url", myUrl) {...}
, but neither are actually making the text clickable. Am I misunderstanding how the API works?Dragos Rachieru
07/24/2023, 6:50 PMadte
07/24/2023, 10:23 PMDragos Rachieru
07/25/2023, 7:35 AMmaterial
dependency with material3
, but it looks like some components are not yet available in commonMain
, an example is ModalBottomSheet
Is there a plan to implement this or is it expected to not be implemented until AlertDialog
is fully supported in common?Michael Paus
07/26/2023, 8:14 AMKirill Grouchnikov
07/26/2023, 5:46 PMJohn O'Reilly
07/27/2023, 2:34 PMComposePanel
within Swing based UI or SwingPanel
instead Compose based UI? (from a performance perspective)