From 9296a21338a27310f0a985047f2c23309ae4e4e2 Mon Sep 17 00:00:00 2001 From: Shindou Mihou Date: Sun, 3 Dec 2023 00:40:59 +0800 Subject: [PATCH] fix: breaking change caused by previous commit --- .../java/pw/mihou/nexus/features/react/styles/TextStyles.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/pw/mihou/nexus/features/react/styles/TextStyles.kt b/src/main/java/pw/mihou/nexus/features/react/styles/TextStyles.kt index 6824370..8c1c3cf 100644 --- a/src/main/java/pw/mihou/nexus/features/react/styles/TextStyles.kt +++ b/src/main/java/pw/mihou/nexus/features/react/styles/TextStyles.kt @@ -59,8 +59,8 @@ interface TextStyles { * @param spoiler whether to hide the text behind a spoiler. */ fun p(text: String, bold: Boolean = false, underline: Boolean = false, italic: Boolean = false, - strikethrough: Boolean = false, spoiler: Boolean = false): String { - val (prefix, suffix) = renderTextStyles(bold, underline, italic, strikethrough, spoiler) + strikethrough: Boolean = false, spoiler: Boolean = false, highlighted: Boolean = false): String { + val (prefix, suffix) = renderTextStyles(bold, underline, italic, strikethrough, spoiler, highlighted) return prefix + text + suffix } @@ -121,7 +121,7 @@ interface TextStyles { * @param highlighted whether to make the text highlighted. */ fun link(text: String, href: String, bold: Boolean = false, underline: Boolean = false, italic: Boolean = false, - strikethrough: Boolean = false, spoiler: Boolean = false, highlighted: Boolean): String { + strikethrough: Boolean = false, spoiler: Boolean = false, highlighted: Boolean = false): String { val (prefix, suffix) = renderTextStyles(bold, underline, italic, strikethrough, spoiler, highlighted) return "$prefix[$text]($href)$suffix" }