-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dark mode on Xiaomi devices (#1566)
Xiaomi devices have a force dark mode that breaks the app's reading view and other views by trying to force them to be dark mode and changing the colors on their own. This disables this functionality.
- Loading branch information
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="Quran" parent="Theme.AppCompat"> | ||
<item name="colorAccent">@color/accent_color</item> | ||
<item name="spinnerStyle">?attr/actionDropDownStyle</item> | ||
<item name="spinnerDropDownItemStyle">@style/SherlockDropDownItem</item> | ||
<item name="spinnerItemStyle">@style/SherlockSpinnerItem</item> | ||
<item name="android:forceDarkAllowed">false</item> | ||
</style> | ||
|
||
<style name="QuranToolBar" parent="Theme.AppCompat.NoActionBar"> | ||
<item name="colorAccent">@color/accent_color</item> | ||
<item name="windowActionModeOverlay">true</item> | ||
<item name="spinnerStyle">?attr/actionDropDownStyle</item> | ||
<item name="spinnerDropDownItemStyle">@style/SherlockDropDownItem</item> | ||
<item name="spinnerItemStyle">@style/SherlockSpinnerItem</item> | ||
<item name="android:forceDarkAllowed">false</item> | ||
</style> | ||
|
||
<style name="QuranDialog" parent="Theme.AppCompat.Dialog"> | ||
<item name="android:forceDarkAllowed">false</item> | ||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters