Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d96d1b9b authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Refactor ripple drawables

parent 006c14db
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
        }

+1 −0
Original line number Diff line number Diff line
@@ -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);
        });

Loading