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