Show composer zoom level

This commit is contained in:
M66B
2021-11-09 09:49:15 +01:00
parent 0465d26537
commit 9d1176ec5f
2 changed files with 10 additions and 1 deletions

View File

@@ -1616,6 +1616,15 @@ public class FragmentCompose extends FragmentBase {
menu.findItem(R.id.menu_answer_create).setEnabled(state == State.LOADED);
menu.findItem(R.id.menu_clear).setEnabled(state == State.LOADED);
SpannableStringBuilder ssbZoom = new SpannableStringBuilder(getString(R.string.title_zoom));
ssbZoom.append(' ');
for (int i = 0; i <= zoom; i++)
ssbZoom.append('+');
menu.findItem(R.id.menu_zoom)
.setIcon(R.drawable.twotone_format_size_24)
.setTitle(ssbZoom);
PopupMenuLifecycle.insertIcon(context, menu.findItem(R.id.menu_zoom));
int colorEncrypt = Helper.resolveColor(context, R.attr.colorEncrypt);
int colorActionForeground = Helper.resolveColor(context, R.attr.colorActionForeground);