姜尚
01/13/2023, 2:04 PMval positionScheduled by remember { mutableStateOf(WindowPosition(Alignment.BottomStart)) }
val memoryWindowStatus = rememberWindowState(position = positionScheduled, width = Dp.Unspecified, height = Dp.Unspecified)
if (list.size > index) {
Window(
{ memoryWindowIsShow = false },
memoryWindowStatus,
memoryWindowIsShow,
Config.appName,
icon,
undecorated = true,
transparent = false,
resizable = true,
focusable = false,
alwaysOnTop = true
) {
WindowDraggableArea(Modifier.background(Color.Red)) {
Text(
list[index].content,
fontSize = 32.sp,
color = Color.White,
modifier = Modifier.defaultMinSize(minWidth = 200.dp)
.background(Color.Gray)
.padding(8.dp),
overflow = TextOverflow.Visible
)
}
}
}