Shell icon indicating copy to clipboard operation
Shell copied to clipboard

[Feature Request] half/variable height labels

Open Protator906 opened this issue 1 year ago • 3 comments

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.

Protator906 avatar Sep 02 '24 01:09 Protator906

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)

RubicBG avatar Sep 02 '24 07:09 RubicBG

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.)

Protator906 avatar Sep 02 '24 09:09 Protator906

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 https://github.com/moudey/Shell/issues/425#issuecomment-1959842606)

RubicBG avatar Sep 02 '24 15:09 RubicBG