Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] half/variable height labels #509

Open
Protator906 opened this issue Sep 2, 2024 · 3 comments
Open

[Feature Request] half/variable height labels #509

Protator906 opened this issue Sep 2, 2024 · 3 comments

Comments

@Protator906
Copy link

Protator906 commented Sep 2, 2024

I use item(vis=label sep=both) to create spacers between blocks of menu entries.
Works nicely, but this way menus become really tall really quickly.
It would be great if there was a way to reduce the height of label with a switch or define it directly.

@RubicBG
Copy link
Collaborator

RubicBG commented Sep 2, 2024

why don't you use a separator ?

item(title=1)
sep()
item(title=2)
separator()
item(title=3)

you can also set theme.separator.margin.top and theme.separator.margin.bottom to edit the height of all separators (https://nilesoft.org/docs/configuration/themes)

@Protator906
Copy link
Author

Protator906 commented Sep 2, 2024

item(vis=label SEP=BOTH)

why don't you use a separator ?

I am aware of separators.
Besides, I want to create more space between specific menu entries, not make global changes by editing the theme.

If we could have more than one separator in between menu items that would also suffice, but currently they simply merge into a single one.
(Or maybe there's a way to make theme.separator.margin.x affect only specific menu items? I'd appreciate a snippet with the proper syntax for that trick.)

@RubicBG
Copy link
Collaborator

RubicBG commented Sep 2, 2024

most of the functionality depends on the Windows context menu itself:

  • merging separators is to avoid grouping the same ones when no menu/item is rendered
  • context menu is taken as one common component, editing is as for one common component, editing only one element is not possible
  • adding a new element like, "high separator", is quite difficult (a similar idea is being worked on Have multiple entries inline [icon only] #425 (comment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants