mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 17:05:07 +01:00
Fixed translucent 2/3 button nav bar on android 10
This commit is contained in:
parent
5f78765ef6
commit
c2bab110d6
@ -73,8 +73,10 @@ class ReaderChapterSheet @JvmOverloads constructor(context: Context, attrs: Attr
|
|||||||
backgroundTintList =
|
backgroundTintList =
|
||||||
ColorStateList.valueOf(lerpColor(primary, fullPrimary, trueProgress))
|
ColorStateList.valueOf(lerpColor(primary, fullPrimary, trueProgress))
|
||||||
chapter_recycler.alpha = trueProgress
|
chapter_recycler.alpha = trueProgress
|
||||||
if (activity.sheetManageNavColor) activity.window.navigationBarColor =
|
if (activity.sheetManageNavColor && progress > 0f) {
|
||||||
lerpColor(ColorUtils.setAlphaComponent(primary, 0), primary, trueProgress)
|
activity.window.navigationBarColor =
|
||||||
|
lerpColor(ColorUtils.setAlphaComponent(primary, 0), primary, trueProgress)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onStateChanged(p0: View, state: Int) {
|
override fun onStateChanged(p0: View, state: Int) {
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
<style name="Theme.Base" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
<style name="Theme.Base" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
||||||
<item name="android:forceDarkAllowed" tools:targetApi="29">false</item>
|
<item name="android:forceDarkAllowed" tools:targetApi="29">false</item>
|
||||||
|
<item name="android:enforceNavigationBarContrast" tools:targetApi="29">false</item>
|
||||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||||
<item name="colorPrimary">@color/app_color_primary</item>
|
<item name="colorPrimary">@color/app_color_primary</item>
|
||||||
<item name="colorPrimaryVariant">@color/colorPrimary</item>
|
<item name="colorPrimaryVariant">@color/colorPrimary</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user