mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-17 23:42:55 +00:00
remove more unnecessary icons
This commit is contained in:
parent
e64d49a50e
commit
43626b009c
107 changed files with 25 additions and 19 deletions
|
@ -39,6 +39,7 @@ import org.dslul.openboard.inputmethod.compat.TabHostCompat;
|
|||
import org.dslul.openboard.inputmethod.keyboard.Key;
|
||||
import org.dslul.openboard.inputmethod.keyboard.KeyboardActionListener;
|
||||
import org.dslul.openboard.inputmethod.keyboard.KeyboardLayoutSet;
|
||||
import org.dslul.openboard.inputmethod.keyboard.KeyboardTheme;
|
||||
import org.dslul.openboard.inputmethod.keyboard.KeyboardView;
|
||||
import org.dslul.openboard.inputmethod.keyboard.internal.KeyDrawParams;
|
||||
import org.dslul.openboard.inputmethod.keyboard.internal.KeyVisualAttributes;
|
||||
|
@ -160,8 +161,14 @@ public final class EmojiPalettesView extends LinearLayout
|
|||
R.layout.emoji_keyboard_tab_icon, null);
|
||||
// TODO: Replace background color with its own setting rather than using the
|
||||
// category page indicator background as a workaround.
|
||||
iconView.setBackgroundColor(mCategoryPageIndicatorBackground);
|
||||
iconView.setColorFilter(Settings.getInstance().getCurrent().mColors.getKeyTextFilter());
|
||||
iconView.setBackgroundColor(mCategoryPageIndicatorBackground); // only necessary for holo?
|
||||
final Colors colors = Settings.getInstance().getCurrent().mColors;
|
||||
iconView.setColorFilter(colors.getKeyTextFilter());
|
||||
// todo: this should not be here, but whatever...
|
||||
if (categoryId != 0 && colors.getThemeStyle().equals(KeyboardTheme.THEME_STYLE_MATERIAL)) {
|
||||
iconView.setScaleX(0.75f);
|
||||
iconView.setScaleY(0.75f);
|
||||
}
|
||||
iconView.setImageResource(mEmojiCategory.getCategoryTabIcon(categoryId));
|
||||
iconView.setContentDescription(mEmojiCategory.getAccessibilityDescription(categoryId));
|
||||
tspec.setIndicator(iconView);
|
||||
|
@ -275,6 +282,7 @@ public final class EmojiPalettesView extends LinearLayout
|
|||
colors.setBackgroundColor(mSpacebar.getBackground(), BackgroundType.SPACE);
|
||||
colors.setKeyboardBackground(this); // todo: color on top appears a little darker than on normal keyboard, what is wrong?
|
||||
mEmojiCategoryPageIndicatorView.setColors(colors.getAccent(), colors.getAdjustedBackground());
|
||||
findViewById(R.id.emoji_tab_strip).setBackgroundColor(colors.getAdjustedBackground());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -298,13 +306,11 @@ public final class EmojiPalettesView extends LinearLayout
|
|||
if (mCurrentTab != null)
|
||||
mCurrentTab.setColorFilter(colors.getKeyTextFilter());
|
||||
mCurrentTab = (ImageView) mTabHost.getCurrentTabView();
|
||||
// todo (later): doesn't work properly, decide which drawables to use for lxx emojis
|
||||
// holo ones are good, but a bit larger (and scaling results in weird background outline)
|
||||
// and the recents is different
|
||||
// dark ones seem to have transparency
|
||||
// light ones are too dark, can only be used when overriding color
|
||||
// mCurrentTab.setColorFilter(colors.accentColorFilter);
|
||||
mCurrentTab.setColorFilter(colors.getAccent());
|
||||
// todo (later): update the lxx recents icon
|
||||
if (categoryId == 0 && colors.getThemeStyle().equals(KeyboardTheme.THEME_STYLE_MATERIAL))
|
||||
mCurrentTab.setColorFilter(colors.getAccent());
|
||||
else
|
||||
mCurrentTab.setColorFilter(colors.getAccentColorFilter());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue