Proof of concept to make the menuitem adjust to the text size.
The adjustement assumes a fixed sized font (or make the font_size param large enough.
The code is a proof of concept and has a known bugs: The sub-menu don't align correctly (see the end of the screenshot).
It should be easy to add a setting to have fixed-width menu item and compact ones (...once the bug is fixed)
Proof of concept to make the menuitem adjust to the text size. The adjustement assumes a fixed sized font (or make the font_size param large enough.
The code is a proof of concept and has a known bugs: The sub-menu don't align correctly (see the end of the screenshot).
It should be easy to add a setting to have fixed-width menu item and compact ones (...once the bug is fixed)