mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 02:15:08 +01:00
Don't use platform attributes for white/black reader backgrounds
Probably fixes #8946
This commit is contained in:
parent
c31e75f02f
commit
7a972dfdb7
@ -1030,10 +1030,10 @@ class ReaderActivity : BaseActivity() {
|
||||
.onEach { theme ->
|
||||
binding.readerContainer.setBackgroundResource(
|
||||
when (theme) {
|
||||
0 -> android.R.color.white
|
||||
0 -> R.color.md_white_1000
|
||||
2 -> R.color.reader_background_dark
|
||||
3 -> automaticBackgroundColor()
|
||||
else -> android.R.color.black
|
||||
else -> R.color.md_black_1000
|
||||
},
|
||||
)
|
||||
}
|
||||
@ -1088,7 +1088,7 @@ class ReaderActivity : BaseActivity() {
|
||||
return if (baseContext.isNightMode()) {
|
||||
R.color.reader_background_dark
|
||||
} else {
|
||||
android.R.color.white
|
||||
R.color.md_white_1000
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user