pull/298/head
gedoor 4 years ago
parent 584700a8a9
commit febe6c9207
  1. 4
      app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt

@ -191,7 +191,7 @@ class ThemeConfigFragment : BasePreferenceFragment(),
private fun backgroundIsDark(sharedPreferences: SharedPreferences): Boolean {
return !ColorUtils.isColorLight(
sharedPreferences.getInt(PreferKey.cBackground, getCompatColor(R.color.md_grey_100))
) && !ColorUtils.isColorLight(
) || !ColorUtils.isColorLight(
sharedPreferences.getInt(PreferKey.cBBackground, getCompatColor(R.color.md_grey_200))
)
}
@ -199,7 +199,7 @@ class ThemeConfigFragment : BasePreferenceFragment(),
private fun backgroundIsLight(sharedPreferences: SharedPreferences): Boolean {
return ColorUtils.isColorLight(
sharedPreferences.getInt(PreferKey.cNBackground, getCompatColor(R.color.md_grey_800))
) && ColorUtils.isColorLight(
) || ColorUtils.isColorLight(
sharedPreferences.getInt(PreferKey.cNBBackground, getCompatColor(R.color.md_grey_850))
)
}

Loading…
Cancel
Save