mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-30 15:21:03 +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.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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user