add label for bin icon and rename drawable

This commit is contained in:
Helium314 2025-01-05 18:49:38 +01:00
parent 51a7508374
commit fe041293b6
6 changed files with 7 additions and 5 deletions

View file

@ -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) {

View file

@ -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());