mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Restrict translucent reader UI to API 26+ (fixes #2580)
This commit is contained in:
parent
6a95ff56df
commit
f9098b5379
3 changed files with 14 additions and 6 deletions
8
app/src/main/res/values-v26/colors.xml
Normal file
8
app/src/main/res/values-v26/colors.xml
Normal 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>
|
|
@ -6,8 +6,6 @@
|
||||||
<!-- Dark Application Colors -->
|
<!-- Dark Application Colors -->
|
||||||
<color name="colorDarkPrimary">#212121</color>
|
<color name="colorDarkPrimary">#212121</color>
|
||||||
<color name="colorDarkPrimaryDark">#1C1C1D</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="colorAmoledPrimary">@color/md_black_1000</color>
|
||||||
|
|
||||||
<color name="splashBackgroundColor">@color/colorPrimary</color>
|
<color name="splashBackgroundColor">@color/colorPrimary</color>
|
||||||
|
@ -47,6 +45,8 @@
|
||||||
<color name="iconColorDark">@color/md_white_1000_54</color>
|
<color name="iconColorDark">@color/md_white_1000_54</color>
|
||||||
|
|
||||||
<!-- Reader Theme -->
|
<!-- 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="pageNumberBackgroundLight">@color/md_grey_50_75</color>
|
||||||
<color name="pageNumberBackgroundDark">@color/md_grey_900_75</color>
|
<color name="pageNumberBackgroundDark">@color/md_grey_900_75</color>
|
||||||
|
|
||||||
|
|
|
@ -131,8 +131,8 @@
|
||||||
<!-- Reader Theme -->
|
<!-- Reader Theme -->
|
||||||
<!--==============-->
|
<!--==============-->
|
||||||
<style name="Theme.Base.Reader.Dark" parent="Theme.Base.Dark">
|
<style name="Theme.Base.Reader.Dark" parent="Theme.Base.Dark">
|
||||||
<item name="colorPrimary">@color/colorDarkPrimaryTranslucent</item>
|
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
|
||||||
<item name="colorPrimaryDark">@color/colorDarkPrimaryDarkTranslucent</item>
|
<item name="colorPrimaryDark">@color/readerColorDarkPrimaryDark</item>
|
||||||
<item name="android:colorBackground">@android:color/black</item>
|
<item name="android:colorBackground">@android:color/black</item>
|
||||||
|
|
||||||
<item name="android:statusBarColor">?colorPrimaryDark</item>
|
<item name="android:statusBarColor">?colorPrimaryDark</item>
|
||||||
|
@ -140,8 +140,8 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Base.Reader.Light" parent="Theme.Base">
|
<style name="Theme.Base.Reader.Light" parent="Theme.Base">
|
||||||
<item name="colorPrimary">@color/colorDarkPrimaryTranslucent</item>
|
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
|
||||||
<item name="colorPrimaryDark">@color/colorDarkPrimaryDarkTranslucent</item>
|
<item name="colorPrimaryDark">@color/readerColorDarkPrimaryDark</item>
|
||||||
<item name="android:colorBackground">@android:color/white</item>
|
<item name="android:colorBackground">@android:color/white</item>
|
||||||
|
|
||||||
<item name="android:statusBarColor">?colorPrimaryDark</item>
|
<item name="android:statusBarColor">?colorPrimaryDark</item>
|
||||||
|
|
Loading…
Reference in a new issue