Set forceDarkAllowed to false

Some system like MIUI forced inverse color (which cannot be turned off for games with night mode on) causes games without covers to become white, which like the game title color causes unreadability, this change prevents that problem.

ref https://stackoverflow.com/questions/63777438/how-to-avoid-forced-dark-theme-in-my-app-when-devices-can-force-it-at-app-level
This commit is contained in:
Howard Wu
2022-11-05 00:40:00 +08:00
committed by Cameron Gutman
parent af784cf79b
commit 1af64b9985

View File

@@ -2,5 +2,7 @@
<style name="AppBaseTheme" parent="android:Theme.Material">
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<!-- Avoid some systems like MIUI which break the visibility of games title -->
<item name="android:forceDarkAllowed">false</item>
</style>
</resources>