Browse Source

Correct @Deprecation.ReplaceWith arguments for Color.hsl, Color.hsla

pull/909/head
Shagen Ogandzhanian 3 years ago
parent
commit
83870dde5d
  1. 4
      web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/Color.kt

4
web/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/Color.kt

@ -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)

Loading…
Cancel
Save