Skip to content

Commit

Permalink
make it work for now...
Browse files Browse the repository at this point in the history
  • Loading branch information
Helium314 committed Sep 23, 2024
1 parent a9cee18 commit aca95de
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/src/main/java/helium314/keyboard/keyboard/Key.java
Original file line number Diff line number Diff line change
Expand Up @@ -938,13 +938,12 @@ public final boolean isAccentColored() {
final String iconName = getIconName();
if (iconName == null) return false;
// todo: other way of identifying the color?
// if yes, NAME_CLIPBOARD_ACTION_KEY and NAME_CLIPBOARD_NORMAL_KEY could be merged
// this should be done differently, as users can set any icon now
// how is the background drawable selected? can we use the same way?
return iconName.equals(KeyboardIconsSet.NAME_NEXT_KEY)
|| iconName.equals(KeyboardIconsSet.NAME_PREVIOUS_KEY);
// todo: maybe need to undo the removal of those names
// but actually this should be done differently, as users can set any icon now -> try make it work
// || iconName.equals(KeyboardIconsSet.NAME_CLIPBOARD_ACTION_KEY)
// || iconName.equals(KeyboardIconsSet.NAME_EMOJI_ACTION_KEY);
|| iconName.equals(KeyboardIconsSet.NAME_PREVIOUS_KEY)
|| iconName.equals("clipboard_action_key")
|| iconName.equals("emoji_action_key");
}

public boolean hasFunctionalBackground() {
Expand Down

0 comments on commit aca95de

Please sign in to comment.