1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

Feat | Dark mode (#2018)

This commit is contained in:
Evgenii Kozlov 2021-12-31 16:43:47 +03:00 committed by GitHub
parent 0004e4c546
commit 7748d2926f
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
334 changed files with 1346 additions and 960 deletions

View file

@ -39,7 +39,7 @@ class RoundedBgTextView : AppCompatTextView {
// need to draw bg first so that text can be on top during super.onDraw()
if (text is Spanned && layout != null) {
canvas.withTranslation(totalPaddingLeft.toFloat(), totalPaddingTop.toFloat()) {
highlightDrawer.draw(canvas, text as Spanned, layout)
highlightDrawer.draw(canvas, text as Spanned, layout, context.resources)
}
}
super.onDraw(canvas)