Created
October 11, 2021 13:59
-
-
Save bodiam/1cfadca819a16f352ca5588c3008ade1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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