Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Colter23 committed Feb 7, 2023
1 parent d5a3f80 commit b4642e7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,13 @@ suspend fun ModuleDynamic.Topic.drawGeneral(): Image {

}

suspend fun ModuleDynamic.Desc.drawGeneral(): Image {
suspend fun ModuleDynamic.ContentDesc.drawGeneral(): Image {
val paragraphStyle = ParagraphStyle().apply {
alignment = Alignment.LEFT
textStyle = titleTextStyle
}

val traCutLineNode = ModuleDynamic.Desc.RichTextNode(
val traCutLineNode = ModuleDynamic.ContentDesc.RichTextNode(
"RICH_TEXT_NODE_TYPE_TEXT",
BiliConfig.translateConfig.cutLine,
BiliConfig.translateConfig.cutLine
Expand Down Expand Up @@ -281,7 +281,7 @@ suspend fun ModuleDynamic.Desc.drawGeneral(): Image {
canvas.apply {
val nodes = if (tra != null) {
richTextNodes.plus(traCutLineNode).plus(
ModuleDynamic.Desc.RichTextNode(
ModuleDynamic.ContentDesc.RichTextNode(
"RICH_TEXT_NODE_TYPE_TEXT", tra, tra
)
)
Expand Down

0 comments on commit b4642e7

Please sign in to comment.