From 68948baff37e139a2a3f88ce3b233effb55955c4 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Mon, 18 Nov 2024 15:59:40 +0100 Subject: feat: Add repo debug information --- src/main/kotlin/util/textutil.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/util/textutil.kt') diff --git a/src/main/kotlin/util/textutil.kt b/src/main/kotlin/util/textutil.kt index 2770b26..5d95d7a 100644 --- a/src/main/kotlin/util/textutil.kt +++ b/src/main/kotlin/util/textutil.kt @@ -130,6 +130,8 @@ fun MutableText.blue() = withColor(Formatting.BLUE) fun MutableText.aqua() = withColor(Formatting.AQUA) fun MutableText.lime() = withColor(Formatting.GREEN) fun MutableText.darkGreen() = withColor(Formatting.DARK_GREEN) +fun MutableText.purple() = withColor(Formatting.DARK_PURPLE) +fun MutableText.pink() = withColor(Formatting.LIGHT_PURPLE) fun MutableText.yellow() = withColor(Formatting.YELLOW) fun MutableText.grey() = withColor(Formatting.GRAY) fun MutableText.red() = withColor(Formatting.RED) @@ -165,6 +167,6 @@ fun Text.transformEachRecursively(function: (Text) -> Text): Text { } } -fun tr(key: String, default: String): Text = error("Compiler plugin did not run.") -fun trResolved(key: String, vararg args: Any) = Text.translatable(key, *args) +fun tr(key: String, default: String): MutableText = error("Compiler plugin did not run.") +fun trResolved(key: String, vararg args: Any): MutableText = Text.stringifiedTranslatable(key, *args) -- cgit