Oversize icons in PopupImageMenuItem



Hi all,

I've been using this code to create a menu full of PopupImageMenuItems
unchanged pretty much since I added an indicator to shellshape, and in
recent versions of gnome-shell (3.16, maybe even 3.14) the icons got
really big:

https://github.com/timbertson/shellshape/issues/164

The code behind the menu items is:

https://github.com/timbertson/shellshape/blob/61808be19419ddd03d9ec4e6c216800ee150ce36/src/gjs/indicator.ts#L137

It's pretty straightforward - I'm not adding any specific styles or
anything, just calling the constructor with some text and the name of
an icon. If I use a builtin icon (e.g. "system-users") it displays the
same, so it's not just my custom icons that are too big.

Anyone know why it's doing this? How can I get back the old behaviour
where the icons were scaled to match the standard height of a
text-only menu item?

Cheers,
 - Tim.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]