Skip to content

Commit

Permalink
Build91
Browse files Browse the repository at this point in the history
  - Fixes
  • Loading branch information
Hamza417 committed Aug 29, 2023
1 parent 30fec9e commit 445e4ae
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions app/src/main/java/app/simple/inure/decorations/views/TagChip.java
Original file line number Diff line number Diff line change
Expand Up @@ -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())));
}
}

Expand All @@ -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())));
}
}

0 comments on commit 445e4ae

Please sign in to comment.