Skip to content

Instantly share code, notes, and snippets.

@bodiam
Created October 11, 2021 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bodiam/1cfadca819a16f352ca5588c3008ade1 to your computer and use it in GitHub Desktop.
Save bodiam/1cfadca819a16f352ca5588c3008ade1 to your computer and use it in GitHub Desktop.
import io.nacular.doodle.application.Application
import io.nacular.doodle.application.application
import io.nacular.doodle.core.Display
import io.nacular.doodle.theme.ThemeManager
import io.nacular.doodle.theme.native.NativeTheme
import org.kodein.di.instance
class MyApp(display: Display,
manager: ThemeManager,
theme : NativeTheme
): Application {
init {
manager.selected = theme
}
override fun shutdown() {
TODO("not implemented")
}
}
fun main() {
application(modules = listOf(NativeTheme)) {
MyApp(instance(), instance(), instance())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment