Refactor ripple drawables

This commit is contained in:
Moez Bhatti
2016-07-07 22:04:51 -10:00
parent 006c14db03
commit d96d1b9b05
10 changed files with 8 additions and 9 deletions
@@ -292,21 +292,21 @@ public class ThemeManager {
mBackgroundColor = mResources.getColor(R.color.grey_light_mega_ultra);
mTextOnBackgroundPrimary = mResources.getColor(R.color.theme_light_text_primary);
mtextOnBackgroundSecondary = mResources.getColor(R.color.theme_light_text_secondary);
mRippleBackgroundRes = R.drawable.button_background_transparent;
mRippleBackgroundRes = R.drawable.ripple;
break;
case DARK:
mBackgroundColor = mResources.getColor(R.color.grey_material);
mTextOnBackgroundPrimary = mResources.getColor(R.color.theme_dark_text_primary);
mtextOnBackgroundSecondary = mResources.getColor(R.color.theme_dark_text_secondary);
mRippleBackgroundRes = R.drawable.button_background_transparent_light;
mRippleBackgroundRes = R.drawable.ripple_light;
break;
case BLACK:
mBackgroundColor = mResources.getColor(R.color.black);
mTextOnBackgroundPrimary = mResources.getColor(R.color.theme_dark_text_primary);
mtextOnBackgroundSecondary = mResources.getColor(R.color.theme_dark_text_secondary);
mRippleBackgroundRes = R.drawable.button_background_transparent_light;
mRippleBackgroundRes = R.drawable.ripple_light;
break;
}
@@ -166,6 +166,7 @@ public class MessageListAdapter extends RecyclerCursorAdapter<MessageListViewHol
LiveViewManager.registerView(QKPreference.BACKGROUND, this, key -> {
holder.mRoot.setBackgroundDrawable(ThemeManager.getRippleBackground());
holder.mSlideShowButton.setBackgroundDrawable(ThemeManager.getRippleBackground());
holder.mMmsView.getForeground().setColorFilter(ThemeManager.getBackgroundColor(), PorterDuff.Mode.SRC_ATOP);
});