diff options
author | Andrew Dolgov <[email protected]> | 2020-04-21 13:08:37 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-04-21 13:08:37 +0300 |
commit | 392a3a57ce9be5ff1af11c4cde74ba3fb765818e (patch) | |
tree | ad761fd3a6cf9d9674519f9ddd4c3fb7955e1932 /org.fox.epube/src/main/res/values | |
parent | 00227531e5f78c063fc6a0c0d9459ee0c81cafa5 (diff) |
support native night mode, pass prefers-color-scheme to webview client
Diffstat (limited to 'org.fox.epube/src/main/res/values')
-rw-r--r-- | org.fox.epube/src/main/res/values/styles.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.fox.epube/src/main/res/values/styles.xml b/org.fox.epube/src/main/res/values/styles.xml index c2558f2..db52e59 100644 --- a/org.fox.epube/src/main/res/values/styles.xml +++ b/org.fox.epube/src/main/res/values/styles.xml @@ -1,12 +1,14 @@ <resources>
<!-- Base application theme. -->
- <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
+ <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:navigationBarColor">@android:color/black</item>
+ <item name="android:forceDarkAllowed">true</item>
+ <item name="android:isLightTheme">true</item>
</style>
</resources>
|