fix: some color logging
This commit is contained in:
parent
9a3f9c6de2
commit
fd39c4f391
3 changed files with 6 additions and 1 deletions
|
@ -30,6 +30,7 @@ import ani.dantotsu.media.user.ListActivity
|
||||||
import ani.dantotsu.setSlideIn
|
import ani.dantotsu.setSlideIn
|
||||||
import ani.dantotsu.setSlideUp
|
import ani.dantotsu.setSlideUp
|
||||||
import ani.dantotsu.util.AniMarkdown.Companion.getFullAniHTML
|
import ani.dantotsu.util.AniMarkdown.Companion.getFullAniHTML
|
||||||
|
import ani.dantotsu.util.Logger
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
|
@ -74,6 +75,7 @@ class ProfileFragment : Fragment() {
|
||||||
binding.profileUserBio.settings.loadWithOverviewMode = true
|
binding.profileUserBio.settings.loadWithOverviewMode = true
|
||||||
binding.profileUserBio.settings.useWideViewPort = true
|
binding.profileUserBio.settings.useWideViewPort = true
|
||||||
binding.profileUserBio.setInitialScale(1)
|
binding.profileUserBio.setInitialScale(1)
|
||||||
|
Logger.log("Text color: ${textColorTypedValue.data} Background color: ${backGroundColorTypedValue.data}")
|
||||||
val styledHtml = getFullAniHTML(
|
val styledHtml = getFullAniHTML(
|
||||||
user.about ?: "",
|
user.about ?: "",
|
||||||
backGroundColorTypedValue.data,
|
backGroundColorTypedValue.data,
|
||||||
|
|
|
@ -64,7 +64,7 @@ class AniMarkdown { //istg anilist has the worst api
|
||||||
val basicHtml = getBasicAniHTML(html)
|
val basicHtml = getBasicAniHTML(html)
|
||||||
|
|
||||||
|
|
||||||
return """
|
val returnHtml = """
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, charset=UTF-8">
|
<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>
|
</body>
|
||||||
|
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
|
Logger.log(returnHtml)
|
||||||
|
return returnHtml
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -91,6 +91,7 @@ class ColorEditor {
|
||||||
base += "${Color.green(this)}, "
|
base += "${Color.green(this)}, "
|
||||||
base += "${Color.blue(this)}, "
|
base += "${Color.blue(this)}, "
|
||||||
base += "${Color.alpha(this) / 255.0})"
|
base += "${Color.alpha(this) / 255.0})"
|
||||||
|
Logger.log("Color: $base")
|
||||||
return base
|
return base
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue