Restrict translucent reader UI to API 26+ (fixes #2580)

This commit is contained in:
arkon 2020-02-09 22:59:03 -05:00
parent 6a95ff56df
commit f9098b5379
3 changed files with 14 additions and 6 deletions

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Reader Theme -->
<color name="readerColorDarkPrimary">#BF212121</color>
<color name="readerColorDarkPrimaryDark">#BF1C1C1D</color>
</resources>

View file

@ -6,8 +6,6 @@
<!-- Dark Application Colors -->
<color name="colorDarkPrimary">#212121</color>
<color name="colorDarkPrimaryDark">#1C1C1D</color>
<color name="colorDarkPrimaryTranslucent">#BF212121</color>
<color name="colorDarkPrimaryDarkTranslucent">#BF1C1C1D</color>
<color name="colorAmoledPrimary">@color/md_black_1000</color>
<color name="splashBackgroundColor">@color/colorPrimary</color>
@ -47,6 +45,8 @@
<color name="iconColorDark">@color/md_white_1000_54</color>
<!-- Reader Theme -->
<color name="readerColorDarkPrimary">@color/colorDarkPrimary</color>
<color name="readerColorDarkPrimaryDark">@color/colorDarkPrimaryDark</color>
<color name="pageNumberBackgroundLight">@color/md_grey_50_75</color>
<color name="pageNumberBackgroundDark">@color/md_grey_900_75</color>

View file

@ -131,8 +131,8 @@
<!-- Reader Theme -->
<!--==============-->
<style name="Theme.Base.Reader.Dark" parent="Theme.Base.Dark">
<item name="colorPrimary">@color/colorDarkPrimaryTranslucent</item>
<item name="colorPrimaryDark">@color/colorDarkPrimaryDarkTranslucent</item>
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
<item name="colorPrimaryDark">@color/readerColorDarkPrimaryDark</item>
<item name="android:colorBackground">@android:color/black</item>
<item name="android:statusBarColor">?colorPrimaryDark</item>
@ -140,8 +140,8 @@
</style>
<style name="Theme.Base.Reader.Light" parent="Theme.Base">
<item name="colorPrimary">@color/colorDarkPrimaryTranslucent</item>
<item name="colorPrimaryDark">@color/colorDarkPrimaryDarkTranslucent</item>
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
<item name="colorPrimaryDark">@color/readerColorDarkPrimaryDark</item>
<item name="android:colorBackground">@android:color/white</item>
<item name="android:statusBarColor">?colorPrimaryDark</item>