Skip to content

Commit

Permalink
[6.0.11][publish] Experimental > fix color
Browse files Browse the repository at this point in the history
  • Loading branch information
Bkm016 committed Jul 24, 2023
1 parent 3349592 commit 2289c44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ open class TextBlock(val level: Int, val properties: MutableMap<String, Property
}
// 渐变
properties["gradient"] != null -> {
val color = properties["color"] ?: error("Missing color for gradient.")
val color = properties["gradient"] ?: error("Missing color for gradient.")
rawMessage.append(newText.toGradientColor(transfer(color).split(',').map { it.parseToHexColor() }))
}
// 语言文件
Expand Down

0 comments on commit 2289c44

Please sign in to comment.