adapt upstream changes

This commit is contained in:
sk 2023-01-26 01:09:08 +01:00 committed by LucasGGamerM
parent 0fd2894a8b
commit e1b1ae717f
3 changed files with 5 additions and 4 deletions

View File

@ -94,9 +94,9 @@ public class ElevationOnScrollListener extends RecyclerView.OnScrollListener imp
if(fragmentRootLayout!=null){
int color;
if(isAtTop){
color=UiUtils.getThemeColor(context, R.attr.colorM3Background);
color=UiUtils.getThemeColor(context, R.attr.toolbarBackground);
}else{
color=UiUtils.alphaBlendColors(UiUtils.getThemeColor(context, R.attr.colorM3Background), UiUtils.getThemeColor(context, R.attr.colorM3Primary), 0.07843137f);
color=UiUtils.alphaBlendColors(UiUtils.getThemeColor(context, R.attr.toolbarBackground), UiUtils.getThemeColor(context, R.attr.colorWindowBackground), 0.07843137f);
}
anims.add(ObjectAnimator.ofArgb(fragmentRootLayout, "statusBarColor", color));
}

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<color android:color="?colorM3Background"/>
<color android:color="?colorWindowBackground"/>
</item>
<item android:id="@+id/color_overlay">
<color android:color="?colorM3Primary"/>
<color android:color="?toolbarBackground"/>
</item>
</layer-list>

View File

@ -15,6 +15,7 @@
android:id="@+id/button_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:orientation="vertical">
<Button