Allow separate specification of status and toolbar active/inactive coloring.

This commit is contained in:
Alex Hart
2022-06-15 09:45:28 -03:00
parent e6cc49368e
commit 6854632fec
3 changed files with 47 additions and 14 deletions

View File

@@ -2223,13 +2223,13 @@ public class ConversationParentFragment extends Fragment
material3OnScrollHelper = new Material3OnScrollHelper(requireActivity(), Collections.singletonList(toolbarBackground), Collections.emptyList()) {
@Override
public int getActiveColorRes() {
return getActiveToolbarColor(wallpaper.getDrawable() != null);
public @NonNull ColorSet getActiveColorSet() {
return new ColorSet(getActiveToolbarColor(wallpaper.getDrawable() != null));
}
@Override
public int getInactiveColorRes() {
return getInactiveToolbarColor(wallpaper.getDrawable() != null);
public @NonNull ColorSet getInactiveColorSet() {
return new ColorSet(getInactiveToolbarColor(wallpaper.getDrawable() != null));
}
};
}