From d23488191a7b47057e0506df24a1b26b86a60c48 Mon Sep 17 00:00:00 2001 From: BlackyHawky Date: Mon, 4 Sep 2023 10:00:00 +0200 Subject: [PATCH] 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. --- .../openboard/inputmethod/keyboard/emoji/EmojiPalettesView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/dslul/openboard/inputmethod/keyboard/emoji/EmojiPalettesView.java b/app/src/main/java/org/dslul/openboard/inputmethod/keyboard/emoji/EmojiPalettesView.java index 41de14f45..3c37cf8d2 100644 --- a/app/src/main/java/org/dslul/openboard/inputmethod/keyboard/emoji/EmojiPalettesView.java +++ b/app/src/main/java/org/dslul/openboard/inputmethod/keyboard/emoji/EmojiPalettesView.java @@ -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);