mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-18 02:53:56 +00:00
fix: some color logging
This commit is contained in:
@@ -30,6 +30,7 @@ import ani.dantotsu.media.user.ListActivity
|
||||
import ani.dantotsu.setSlideIn
|
||||
import ani.dantotsu.setSlideUp
|
||||
import ani.dantotsu.util.AniMarkdown.Companion.getFullAniHTML
|
||||
import ani.dantotsu.util.Logger
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
@@ -74,6 +75,7 @@ class ProfileFragment : Fragment() {
|
||||
binding.profileUserBio.settings.loadWithOverviewMode = true
|
||||
binding.profileUserBio.settings.useWideViewPort = true
|
||||
binding.profileUserBio.setInitialScale(1)
|
||||
Logger.log("Text color: ${textColorTypedValue.data} Background color: ${backGroundColorTypedValue.data}")
|
||||
val styledHtml = getFullAniHTML(
|
||||
user.about ?: "",
|
||||
backGroundColorTypedValue.data,
|
||||
|
||||
@@ -64,7 +64,7 @@ class AniMarkdown { //istg anilist has the worst api
|
||||
val basicHtml = getBasicAniHTML(html)
|
||||
|
||||
|
||||
return """
|
||||
val returnHtml = """
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, charset=UTF-8">
|
||||
@@ -95,6 +95,8 @@ class AniMarkdown { //istg anilist has the worst api
|
||||
</body>
|
||||
|
||||
""".trimIndent()
|
||||
Logger.log(returnHtml)
|
||||
return returnHtml
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -91,6 +91,7 @@ class ColorEditor {
|
||||
base += "${Color.green(this)}, "
|
||||
base += "${Color.blue(this)}, "
|
||||
base += "${Color.alpha(this) / 255.0})"
|
||||
Logger.log("Color: $base")
|
||||
return base
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user