mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 05:52:47 +00:00
add label for bin icon and rename drawable
This commit is contained in:
parent
51a7508374
commit
fe041293b6
6 changed files with 7 additions and 5 deletions
|
@ -119,7 +119,7 @@ class KeyboardIconsSet private constructor() {
|
|||
NAME_SWITCH_ONEHANDED_KEY to R.drawable.ic_arrow_left,
|
||||
NAME_RESIZE_ONEHANDED_KEY to R.drawable.ic_arrow_horizontal,
|
||||
NAME_TOOLBAR_KEY to R.drawable.ic_arrow_right,
|
||||
NAME_BIN to R.drawable.ic_delete,
|
||||
NAME_BIN to R.drawable.ic_bin,
|
||||
).apply {
|
||||
ToolbarKey.entries.forEach {
|
||||
put(it.name.lowercase(Locale.US), when (it) {
|
||||
|
@ -179,7 +179,7 @@ class KeyboardIconsSet private constructor() {
|
|||
NAME_SWITCH_ONEHANDED_KEY to R.drawable.ic_arrow_left,
|
||||
NAME_RESIZE_ONEHANDED_KEY to R.drawable.ic_arrow_horizontal,
|
||||
NAME_TOOLBAR_KEY to R.drawable.ic_arrow_right,
|
||||
NAME_BIN to R.drawable.ic_delete,
|
||||
NAME_BIN to R.drawable.ic_bin,
|
||||
).apply {
|
||||
ToolbarKey.entries.forEach {
|
||||
put(it.name.lowercase(Locale.US), when (it) {
|
||||
|
@ -239,7 +239,7 @@ class KeyboardIconsSet private constructor() {
|
|||
NAME_SWITCH_ONEHANDED_KEY to R.drawable.ic_arrow_left_rounded,
|
||||
NAME_RESIZE_ONEHANDED_KEY to R.drawable.ic_arrow_horizontal_rounded,
|
||||
NAME_TOOLBAR_KEY to R.drawable.ic_arrow_right_rounded,
|
||||
NAME_BIN to R.drawable.ic_delete_rounded,
|
||||
NAME_BIN to R.drawable.ic_bin_rounded,
|
||||
).apply {
|
||||
ToolbarKey.entries.forEach {
|
||||
put(it.name.lowercase(Locale.US), when (it) {
|
||||
|
|
|
@ -97,7 +97,7 @@ public class UserDictionaryAddWordFragment extends SubScreenFragment {
|
|||
saveWordButton.setVisibility(TextUtils.isEmpty(mWordEditText.getText().toString()) ? View.INVISIBLE : View.VISIBLE);
|
||||
|
||||
final Button deleteWordButton = mRootView.findViewById(R.id.user_dictionary_delete_button);
|
||||
final Drawable deleteWordIcon = toScaledBitmapDrawable(R.drawable.ic_delete, 0.75f);
|
||||
final Drawable deleteWordIcon = toScaledBitmapDrawable(R.drawable.ic_bin, 0.75f);
|
||||
deleteWordButton.setCompoundDrawablesWithIntrinsicBounds(null, null, deleteWordIcon, null);
|
||||
deleteWordButton.setOnClickListener(v -> {
|
||||
mContents.delete(requireContext());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue