mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-21 14:23:55 +00:00
fix: bio color cleanup
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user