code: public int color(Context ctx, @AttrRes int colorStyle, @ColorRes int colorDefaultRes) {
          //get the color from the holder else from the theme
          int color = color(ctx);
          if (color == 0) {
              return UIUtils.getThemeColorFromAttrOrRes(ctx, colorStyle, colorDefaultRes);
          } else {
              return color;
          }
      }
docs: a small helper class to get the color from the colorHolder or from the theme or from the default color value
  
  @param ctx
  @param colorStyle
  @param colorDefaultRes
  @return