All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.nacular.doodle.theme.material.MaterialTheme.kt Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy