Skip to content

Commit

Permalink
Correct @Deprecation.ReplaceWith arguments for Color.hsl, Color.hsla
Browse files Browse the repository at this point in the history
  • Loading branch information
Schahen committed Jul 19, 2021
1 parent c271999 commit 83870dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ object Color {
override fun toString(): String = "rgba($r, $g, $b, $a)"
}

@Deprecated("use org.jetbrains.compose.web.css.hsl", ReplaceWith("hsl(r, g, b)"))
@Deprecated("use org.jetbrains.compose.web.css.hsl", ReplaceWith("hsl(h, s, l)"))
data class HSL(val h: CSSAngleValue, val s: Number, val l: Number) : CSSColorValue {
constructor(h: Number, s: Number, l: Number) : this(h.deg, s, l)

override fun toString(): String = "hsl($h, $s%, $l%)"
}

@Deprecated("use org.jetbrains.compose.web.css.hsla", ReplaceWith("hsla(r, g, b, a)"))
@Deprecated("use org.jetbrains.compose.web.css.hsla", ReplaceWith("hsla(h, s, l, a)"))
data class HSLA(val h: CSSAngleValue, val s: Number, val l: Number, val a: Number) : CSSColorValue {
constructor(h: Number, s: Number, l: Number, a: Number) : this(h.deg, s, l, a)

Expand Down

0 comments on commit 83870dd

Please sign in to comment.