fix: bio color cleanup

This commit is contained in:
rebelonion 2024-03-17 00:10:39 -05:00
parent fd39c4f391
commit bb110be9ab
3 changed files with 8 additions and 19 deletions

View file

@ -1,6 +1,7 @@
package ani.dantotsu.util
import ani.dantotsu.util.ColorEditor.Companion.toCssColor
import ani.dantotsu.util.ColorEditor.Companion.toHexColor
class AniMarkdown { //istg anilist has the worst api
companion object {
@ -60,7 +61,7 @@ class AniMarkdown { //istg anilist has the worst api
return underlineToHtml(step3)
}
fun getFullAniHTML(html: String, backGroundColor: Int, textColor: Int): String {
fun getFullAniHTML(html: String, textColor: Int): String {
val basicHtml = getBasicAniHTML(html)
@ -95,7 +96,6 @@ class AniMarkdown { //istg anilist has the worst api
</body>
""".trimIndent()
Logger.log(returnHtml)
return returnHtml
}
}

View file

@ -91,8 +91,11 @@ class ColorEditor {
base += "${Color.green(this)}, "
base += "${Color.blue(this)}, "
base += "${Color.alpha(this) / 255.0})"
Logger.log("Color: $base")
return base
}
fun Int.toHexColor(): String {
return String.format("#%06X", 0xFFFFFF and this)
}
}
}