Add import/export of chat colors.

This commit is contained in:
Clark
2024-06-07 11:18:33 -04:00
committed by Alex Hart
parent b782fabbb6
commit e5872037e0
4 changed files with 138 additions and 3 deletions

View File

@@ -125,6 +125,13 @@ class ChatColors(
fun withId(id: Id): ChatColors = ChatColors(id, linearGradient, singleColor)
fun matchesWithoutId(other: ChatColors): Boolean {
if (linearGradient != other.linearGradient) return false
if (singleColor != other.singleColor) return false
return true
}
override fun equals(other: Any?): Boolean {
val otherChatColors: ChatColors = (other as? ChatColors) ?: return false

View File

@@ -162,6 +162,9 @@ object ChatColorsPalette {
@JvmStatic
val default = ULTRAMARINE
/*
* If updating this list of colors, make sure to update the backup import/export colors as well.
*/
val solids = listOf(
CRIMSON,
VERMILION,