diff --git a/app/src/main/java/app/simple/inure/decorations/views/TagChip.java b/app/src/main/java/app/simple/inure/decorations/views/TagChip.java index 340cd8af0..9671bb755 100644 --- a/app/src/main/java/app/simple/inure/decorations/views/TagChip.java +++ b/app/src/main/java/app/simple/inure/decorations/views/TagChip.java @@ -85,14 +85,21 @@ public void setChipColor(int color, boolean whiteText) { } )); - setRippleColor(ColorStateList.valueOf(color)); - if (whiteText) { setTextColor(ColorStateList.valueOf(Color.WHITE)); + setChipIconTint(ColorStateList.valueOf(Color.WHITE)); + setRippleColor(ColorStateList.valueOf(Color.WHITE)); } else { setTextColor(ColorStateList .valueOf(ThemeManager.INSTANCE.getTheme() .getTextViewTheme().getPrimaryTextColor())); + + setChipIconTint(ColorStateList + .valueOf(ThemeManager.INSTANCE.getTheme() + .getIconTheme().getRegularIconColor())); + + setRippleColor(ColorStateList + .valueOf(AppearancePreferences.INSTANCE.getAccentColorLight(getContext()))); } } @@ -114,5 +121,12 @@ public void setDefaultChipColor() { setTextColor(ColorStateList .valueOf(ThemeManager.INSTANCE.getTheme() .getTextViewTheme().getPrimaryTextColor())); + + setChipIconTint(ColorStateList + .valueOf(ThemeManager.INSTANCE.getTheme() + .getIconTheme().getRegularIconColor())); + + setRippleColor(ColorStateList + .valueOf(AppearancePreferences.INSTANCE.getAccentColorLight(getContext()))); } }