fishy
08/24/2026, 8:03 AMseb
08/24/2026, 8:04 AMseb
08/24/2026, 8:04 AMfishy
08/24/2026, 8:07 AMseb
08/24/2026, 8:11 AMfishy
08/24/2026, 8:39 AMfun main() = application {
IntUiTheme(
theme = JewelTheme.darkThemeDefinition(),
styling = ComponentStyling.default().decoratedWindow(
windowStyle = DecoratedWindowStyle.dark(), titleBarStyle = TitleBarStyle.dark()
),
) {
DecoratedWindow(onCloseRequest = { exitApplication() }) {
TitleBar {}
Box(
Modifier.dragAndDropTarget({
when (val e = it.nativeEvent) {
is DropTargetDropEvent -> println(e.currentDataFlavorsAsList)
is DropTargetDragEvent -> println(e.currentDataFlavorsAsList)
}
true
}, object : DragAndDropTarget {
override fun onDrop(event: DragAndDropEvent): Boolean {
return true
}
}).background(JewelTheme.globalColors.panelBackground).fillMaxSize()
) {}
}
}
}
but it seems random whether it'll actually appear as a valid drop target or notfishy
08/24/2026, 8:40 AMfishy
08/24/2026, 8:40 AMfishy
08/24/2026, 9:02 AM@OptIn(ExperimentalComposeUiApi::class)
fun main() = application {
IntUiTheme(
theme = JewelTheme.darkThemeDefinition(),
styling = ComponentStyling.default().decoratedWindow(
windowStyle = DecoratedWindowStyle.dark(), titleBarStyle = TitleBarStyle.dark()
),
) {
DecoratedWindow(onCloseRequest = { exitApplication() }) {
TitleBar {}
Box(
Modifier.dragAndDropTarget({
it.dragData() is DragData.FilesList
}, object : DragAndDropTarget {
override fun onDrop(event: DragAndDropEvent): Boolean {
return true
}
}).background(JewelTheme.globalColors.panelBackground).fillMaxSize()
) {}
}
}
}
but it still happensfishy
08/24/2026, 9:03 AMremember the DragAndDropTarget