commonMain.io.nacular.doodle.theme.material.MaterialTheme.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of themes Show documentation
Show all versions of themes Show documentation
A pure Kotlin, UI framework for the Web and Desktop
The newest version!
package io.nacular.doodle.theme.material
import io.nacular.doodle.controls.buttons.Button
import io.nacular.doodle.drawing.Color
import io.nacular.doodle.drawing.Color.Companion.White
import io.nacular.doodle.theme.Modules.BehaviorResolver
import io.nacular.doodle.theme.Modules.Companion.bindBehavior
import io.nacular.doodle.theme.adhoc.DynamicTheme
import io.nacular.measured.units.Measure
import io.nacular.measured.units.Time
import org.kodein.di.DI.Module
import org.kodein.di.bind
import org.kodein.di.erasedSet
import org.kodein.di.instance
import org.kodein.di.singleton
/**
* Created by Nicholas Eddy on 1/8/20.
*/
public class MaterialTheme(behaviors: Iterable): DynamicTheme(behaviors.filter { it.theme == MaterialTheme::class }) {
override fun toString(): String = this::class.simpleName ?: ""
public companion object {
public class FontConfig(public val source: String, public val timeout: Measure