Set background contour colors.

@return The current IconicsDrawable for chaining.
495254
@NonNull
    public IconicsDrawable backgroundContourColor(@NonNull ColorStateList colors) {
        if (colors != null) {
            mBackgroundContourBrush.setColors(colors);
            if (mBackgroundContourBrush.applyState(getState())) {
                invalidateSelf();
            }
        }
        return this;
    }
1205902
@NonNull
    public IconicsDrawable shadowRes(
            @DimenRes int radiusRes,
            @DimenRes int dxRes,
            @DimenRes int dyRes,
            @ColorRes int colorResId) {
        return shadowPx(
                mContext.getResources().getDimensionPixelSize(radiusRes),
                mContext.getResources().getDimensionPixelSize(dxRes),
                mContext.getResources().getDimensionPixelSize(dyRes),
                ContextCompat.getColor(mContext, colorResId));
    }
562052
public static int getSelectableBackground(Context ctx) {
        // If we're running on Honeycomb or newer, then we can use the Theme's
        // selectableItemBackground to ensure that the View has a pressed state
        TypedValue outValue = new TypedValue();
        //it is important here to not use the android.R because this wouldn't add the latest drawable
        ctx.getTheme().resolveAttribute(R.attr.selectableItemBackground, outValue, true);
        return outValue.resourceId;
    }
1101452
@NonNull
    public IconicsDrawable backgroundContourColorListRes(@ColorRes int colorResId) {
        return backgroundContourColor(ContextCompat.getColorStateList(mContext, colorResId));
    }
351407
@Pure
	public static int getPreferredColor() {
		final Preferences prefs = Preferences.userNodeForPackage(MapElementConstants.class);
		if (prefs != null) {
			return prefs.getInt("COLOR", DEFAULT_COLOR); //$NON-NLS-1$
		}
		return DEFAULT_COLOR;
	}
174048
private Drawable tileifyIndeterminate(Drawable drawable) {
        if (drawable instanceof AnimationDrawable) {
            AnimationDrawable background = (AnimationDrawable) drawable;
            final int N = background.getNumberOfFrames();
            AnimationDrawable newBg = new AnimationDrawable();
            newBg.setOneShot(background.isOneShot());

            for (int i = 0; i < N; i++) {
                Drawable frame = tileify(background.getFrame(i), true);
                frame.setLevel(10000);
                newBg.addFrame(frame, background.getDuration(i));
            }
            newBg.setLevel(10000);
            drawable = newBg;
        }
        return drawable;
    }
1146954
public void setForegroundIcon(final PROVIDER iconProvider, final Color color) {
        // copy old images to replace later.
        final Shape oldForegroundIcon = foregroundIcon;
        final Shape oldForegroundFadeIcon = foregroundFadeIcon;

        // create new images.
        this.foregroundIcon = createIcon(iconProvider, Layer.FOREGROUND);
        this.foregroundFadeIcon = createColorFadeIcon(iconProvider, Layer.FOREGROUND);

        // setup icon color
        if (color != null) {
            setForegroundIconColor(color);
        }

        // replace old icons with new ones.
        getChildren().replaceAll((node) -> {
            if (node.equals(oldForegroundIcon)) {
                return foregroundIcon;
            } else if (node.equals(oldForegroundFadeIcon)) {
                return foregroundFadeIcon;
            } else {
                return node;
            }
        }
106825
public JFreeChartRender setBackgroundPaint(Color color) {
        chart.setBackgroundPaint(color);
        getPlot().setBackgroundPaint(color);
        return this;
    }
803990
public Fingerprint fingerprintScanningColor(int fingerprintScanning) {
        this.fingerprintScanning = fingerprintScanning;
        this.fingerprintImageView.setBackgroundTintList(ColorStateList.valueOf(getContext().getColor(fingerprintScanning)));
        return this;
    }
224403
static ShapeDrawable getRoundedOutlineBackground(Resources resources, @ColorInt int color) {
        int r = resources.getDimensionPixelSize(R.dimen.com_auth0_lock_widget_corner_radius);
        int t = resources.getDimensionPixelSize(R.dimen.com_auth0_lock_input_field_stroke_width);
        RoundRectShape rr = new RoundRectShape(new float[]{r, r, r, r, r, r, r, r}, new RectF(t, t, t, t), new float[]{r, r, r, r, r, r, r, r});
        ShapeDrawable drawable = new ShapeDrawable(rr);
        drawable.getPaint().setColor(color);
        return drawable;
    }
728578
@NonNull
    public IconicsDrawable roundedCornersRxPx(@Dimension(unit = PX) int sizePx) {
        mRoundedCornerRx = sizePx;

        invalidateSelf();
        return this;
    }
701159
public static StateListDrawable getSelectableImageButtonBackground(int selected_color) {
		ColorDrawable selectedColor = new ColorDrawable(selected_color);
		StateListDrawable states = new StateListDrawable();
		states.addState(new int[]{android.R.attr.state_pressed}, selectedColor);
		states.addState(new int[]{android.R.attr.state_activated}, selectedColor);
		return states;
	}
106952
public void setBackgroundIconColorDefault() {
        if (backgroundIcon == null) {
            LOGGER.warn("Background modification skipped because background icon not set!");
            return;
        }
        stopBackgroundIconColorFadeAnimation();
        backgroundIcon.getStyleClass().clear();
        backgroundIcon.getStyleClass().add(JFXConstants.CSS_ICON);
        backgroundFadeIcon.setFill(Color.TRANSPARENT);
    }
106945
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
    public final void setPopupBackgroundDrawable(final Drawable background) {
        getView().setPopupBackgroundDrawable(background);
    }
206848
@NonNull
    public IconicsDrawable icon(@NonNull IIcon icon) {
        mIcon = icon;
        mPlainIcon = null;
        ITypeface typeface = icon.getTypeface();
        mIconBrush.getPaint().setTypeface(typeface.getTypeface(mContext));

        invalidateSelf();
        return this;
    }
214614
@NonNull
    public IconicsDrawable roundedCornersRyPx(@Dimension(unit = PX) int sizePx) {
        mRoundedCornerRy = sizePx;

        invalidateSelf();
        return this;
    }
1218055
public Fingerprint circleErrorColor(int circleError) {
        this.circleError = circleError;
        this.circleView.setBackgroundTintList(ColorStateList.valueOf(getContext().getColor(circleError)));
        return this;
    }