mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Don't use platform attributes for white/black reader backgrounds
Probably fixes #8946
This commit is contained in:
parent
c31e75f02f
commit
7a972dfdb7
1 changed files with 3 additions and 3 deletions
|
@ -1030,10 +1030,10 @@ class ReaderActivity : BaseActivity() {
|
||||||
.onEach { theme ->
|
.onEach { theme ->
|
||||||
binding.readerContainer.setBackgroundResource(
|
binding.readerContainer.setBackgroundResource(
|
||||||
when (theme) {
|
when (theme) {
|
||||||
0 -> android.R.color.white
|
0 -> R.color.md_white_1000
|
||||||
2 -> R.color.reader_background_dark
|
2 -> R.color.reader_background_dark
|
||||||
3 -> automaticBackgroundColor()
|
3 -> automaticBackgroundColor()
|
||||||
else -> android.R.color.black
|
else -> R.color.md_black_1000
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1088,7 +1088,7 @@ class ReaderActivity : BaseActivity() {
|
||||||
return if (baseContext.isNightMode()) {
|
return if (baseContext.isNightMode()) {
|
||||||
R.color.reader_background_dark
|
R.color.reader_background_dark
|
||||||
} else {
|
} else {
|
||||||
android.R.color.white
|
R.color.md_white_1000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue