mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Better Kotlin-Ant compatibility
This commit is contained in:
@@ -68,7 +68,10 @@ compose.desktop {
|
||||
upgradeUuid = "89d8d7fe-5602-4b12-ba10-0fe78efbd602"
|
||||
}
|
||||
linux {
|
||||
appCategory = "Programming"
|
||||
menuGroup = "Processing"
|
||||
iconFile = project.file("../build/linux/processing.png")
|
||||
// Fix fonts on some Linux distributions
|
||||
jvmArgs("-Dawt.useSystemAAFontSettings=on")
|
||||
}
|
||||
|
||||
|
||||
@@ -169,6 +169,7 @@
|
||||
nowarn="true">
|
||||
<compilerarg value="-Xlint:deprecation" />
|
||||
<src path="src" />
|
||||
<src path="ant" />
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
|
||||
@@ -5,21 +5,24 @@ import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.window.Window
|
||||
import androidx.compose.ui.window.application
|
||||
|
||||
fun ExamplesLibrary(){
|
||||
class ExamplesLibrary{
|
||||
companion object{
|
||||
@JvmStatic
|
||||
fun main(args: Array<String>) = application {
|
||||
val active = remember { mutableStateOf(true) }
|
||||
if(!active.value){
|
||||
Window(onCloseRequest = ::exitApplication) {
|
||||
|
||||
}
|
||||
return@application
|
||||
}
|
||||
Window(
|
||||
onCloseRequest = { active.value = false },
|
||||
) {
|
||||
ExamplesLibrary()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun main() = application {
|
||||
val active = remember { mutableStateOf(true) }
|
||||
if(!active.value){
|
||||
Window(onCloseRequest = ::exitApplication) {
|
||||
|
||||
}
|
||||
return@application
|
||||
}
|
||||
Window(
|
||||
onCloseRequest = { active.value = false },
|
||||
) {
|
||||
ExamplesLibrary()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user