Skip to content

Icons in menu entries #2835

@virtualritz

Description

@virtualritz

Is your feature request related to a problem? Please describe.

I would like an easy way to add an icon (i.e. just a char) to the left side of a menu entry.
But in a way that the text of the actual entry starts at the same position for all entries in a menu. Kinda like at a left-aligned tab stop.
The icons themselves would be centered horizontally in the resp. area on the left.

This is what happens if one just uses a space to separate:

⟲ Factory Reset App State
🗑 Clear Recently Used
⚙ Preferences…

In the above list you can see the alignment of the first entry doesn't match while the two below look 'good enough'.

Below I bracketed the character with two thin spaces to get the alignment I want but this approach is only feasible when the font is never changing and still fiddly at best:

 ⟲  Factory Reset App State
🗑 Clear Recently Used
⚙ Preferences…

I am not sure if this is in any way possible already with TextStyle?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions