Update colors for scroll-to buttons to match material3 spec.

This commit is contained in:
Alex Hart
2022-06-06 13:20:19 -03:00
parent 5080dd4c4b
commit 7010985be8
7 changed files with 18 additions and 6 deletions

View File

@@ -46,6 +46,14 @@ public final class ConversationScrollToView extends FrameLayout {
}
}
public void setWallpaperEnabled(boolean hasWallpaper) {
if (hasWallpaper) {
scrollButton.setBackgroundResource(R.drawable.scroll_to_bottom_background_wallpaper);
} else {
scrollButton.setBackgroundResource(R.drawable.scroll_to_bottom_background_normal);
}
}
public void setUnreadCountBackgroundTint(@ColorInt int tint) {
unreadCount.getBackground().setColorFilter(new SimpleColorFilter(tint));
}