Bar under the selected emoji category follows accent color (#126)

This only applies to the Holo style, which is the only one to have the "categoryIndicatorEnabled" parameter set to true.
This commit is contained in:
BlackyHawky 2023-09-04 10:00:00 +02:00 committed by GitHub
parent fb81b8c722
commit d23488191a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,6 +189,8 @@ public final class EmojiPalettesView extends LinearLayout
tabWidget.setBackgroundResource(mCategoryIndicatorDrawableResId);
tabWidget.setLeftStripDrawable(mCategoryIndicatorBackgroundResId);
tabWidget.setRightStripDrawable(mCategoryIndicatorBackgroundResId);
final Colors colors = Settings.getInstance().getCurrent().mColors;
tabWidget.setBackgroundColor(colors.accent);
}
mEmojiPalettesAdapter = new EmojiPalettesAdapter(mEmojiCategory, this);