Skip to content

Commit c3c6828

Browse files
committed
Update Color.Green on JS to match the Compose one
1 parent 2daac25 commit c3c6828

File tree

1 file changed

+2
-1
lines changed
  • compose-multiplatform-common/src/jsMain/kotlin/com/huanshankeji/compose/ui/graphics

1 file changed

+2
-1
lines changed

compose-multiplatform-common/src/jsMain/kotlin/com/huanshankeji/compose/ui/graphics/Color.js.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ actual /*value*/ class Color(val platformValue: PlatformColor) {
3232
@Stable
3333
actual val Red: Color = Color(PlatformColors.Red)
3434

35+
// The CSS green is #008000 which differs from the Compose one.
3536
@Stable
36-
actual val Green: Color = Color(PlatformColors.Green)
37+
actual val Green: Color = Color(PlatformColor.rgb(0x00, 0xFF, 0x00))
3738

3839
@Stable
3940
actual val Blue: Color = Color(PlatformColors.Blue)

0 commit comments

Comments
 (0)