package com.asesolution.mobile.lorempixel.utils;

import android.graphics.Bitmap;
import android.graphics.Color;

import com.asesolution.mobile.lorempixel.utils.picasso.PaletteTransformation;

public class PaletteUtils {
    private static final int DEFAULT_COLOR = Color.parseColor("#757575");
    private static final int DEFAULT_ALPHA = 170; // 255 * 2 / 3

    public static int getPaletteColor(Bitmap bitmap) {
        int color = PaletteTransformation.getPalette(bitmap).getDarkVibrantColor(DEFAULT_COLOR);

        // Add some transparency. This kind of sucks and it's a little cleaner/faster
        // to just use bitwise operations, but I'm going for a readability here
        return Color.argb(DEFAULT_ALPHA, Color.red(color), Color.green(color), Color.blue(color));
    }
}

@@ -107,16 +107,118 @@
 Color;%0A%0A
+import com.asesolution.mobile.lorempixel.MainApplication;%0Aimport com.asesolution.mobile.lorempixel.R;%0A
 import c
@@ -365,34 +365,79 @@
 R = 
-Color.parseColor(%22#757575%22
+MainApplication.getStaticResources().getColor(R.color.md_grey_600, null
 );%0A 

Update upaletteutils to source default color from colors.xml