Lines Matching refs:tint
262 // First mutate the Drawable, then wrap it and set the tint list
296 // If we didn't tint using a ColorFilter, and we're set to fail if we don't
523 ColorStateList tint = getTintListFromCache(context, resId);
525 if (tint == null) {
528 tint = getColorStateList(context, R.color.abc_tint_edittext);
530 tint = getColorStateList(context, R.color.abc_tint_switch_track);
532 tint = createSwitchThumbColorStateList(context);
534 tint = createDefaultButtonColorStateList(context);
536 tint = createBorderlessButtonColorStateList(context);
538 tint = createColoredButtonColorStateList(context);
541 tint = getColorStateList(context, R.color.abc_tint_spinner);
543 tint = getThemeAttrColorStateList(context, R.attr.colorControlNormal);
545 tint = getColorStateList(context, R.color.abc_tint_default);
547 tint = getColorStateList(context, R.color.abc_tint_btn_checkable);
549 tint = getColorStateList(context, R.color.abc_tint_seek_thumb);
552 if (tint != null) {
553 addTintListToCache(context, resId, tint);
556 return tint;
586 // We ignore the custom tint for borderless buttons
693 static void tintDrawable(Drawable drawable, TintInfo tint, int[] state) {
700 if (tint.mHasTintList || tint.mHasTintMode) {
702 tint.mHasTintList ? tint.mTintList : null,
703 tint.mHasTintMode ? tint.mTintMode : DEFAULT_MODE,
716 private static PorterDuffColorFilter createTintFilter(ColorStateList tint,
718 if (tint == null || tintMode == null) {
721 final int color = tint.getColorForState(state, Color.TRANSPARENT);