diff --git a/kmpalette-core/src/commonMain/kotlin/com/kmpalette/DominantColorState.kt b/kmpalette-core/src/commonMain/kotlin/com/kmpalette/DominantColorState.kt index 1019d08..3e146c8 100644 --- a/kmpalette-core/src/commonMain/kotlin/com/kmpalette/DominantColorState.kt +++ b/kmpalette-core/src/commonMain/kotlin/com/kmpalette/DominantColorState.kt @@ -136,7 +136,7 @@ public abstract class DominantColorState( /** * The color to use _on_ [color]. */ - public var onColor: Color by mutableStateOf(defaultColor) + public var onColor: Color by mutableStateOf(defaultOnColor) private set /** @@ -213,6 +213,7 @@ public abstract class DominantColorState( */ public fun reset() { color = defaultColor + onColor = defaultOnColor } public companion object {