oleg-shilo / shell-x

Dynamic context menu manager for Windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Icon too big on nested context menu

Fantazzj opened this issue · comments

When I put an icon for the nested context menu it appears to big.

The problem
immagine

The folder of the configuration:
immagine

I'm using the one it is included with the software, i've tried even with different icons from 32x32 and bigger, but the same happens.
I'm ond windows 10 and used chocolatey to install shell-x.

Not sure I have too many options to address it.

The icon file is taken as is and assigned to the standard .NET WinForms menu item:

var menu = new ToolStripMenuItem
           {
               Text = item.ToFileMenuText(),
               Image = LookupImageFor(item)
           };

Thus the extension itself does not participate in the menu rendering. Thus there is no mechanism to change the rendering algorithm.

I am guessing there is something tricky with your monitor resolution and scaling. Under normal circumstances, as you can see the very same icon works just fine:

image

Not sure what can be done if you have to keep your calling. Maybe you can just develop your custom icon if the benefit is worth the effort.

I also found this problem today. For icons of the same size, the icon of the file in the right-click menu will be smaller than the icon of the folder.
2022-12-01_00-17-22

Sorry for the late response. Indeed there was a mistake in the image assignment algorithm for folders.
Fixed in the Release v1.5.2