Skip to content

Commit

Permalink
Update onColor default values
Browse files Browse the repository at this point in the history
  • Loading branch information
mr3y-the-programmer authored Sep 27, 2023
1 parent 92333ed commit cd54d91
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public abstract class DominantColorState<T : Any>(
/**
* The color to use _on_ [color].
*/
public var onColor: Color by mutableStateOf(defaultColor)
public var onColor: Color by mutableStateOf(defaultOnColor)
private set

/**
Expand Down Expand Up @@ -213,6 +213,7 @@ public abstract class DominantColorState<T : Any>(
*/
public fun reset() {
color = defaultColor
onColor = defaultOnColor
}

public companion object {
Expand Down

0 comments on commit cd54d91

Please sign in to comment.