On 11.07.2016 21:24, Guillaume Munch wrote:
Le 11/07/2016 09:17, racoon a écrit :
On 15.06.2016 09:45, racoon wrote:
Hi,
I could not find a discussion on icons in menus. I tend to believe that
they help locating entries when scanning over a menu entry. But maybe
that's bogus. I think icons in menus are less popular on macOS [sic]
than on Windows and Linux. I am just throwing this in.
That would be a good idea.
There seems to be Qt support for icons in menus. I guess one could add
those icons that are already available from the toolbar (depending on
the choice of toolbar icons) and leave others blank. That could already
increase the speed in the location of entries.
Maybe there could be an option to disable icons in menus for those who
don't like them?
No additional option.
Since LyX has no static menus I guess the icon should be attached to the
LFUN?
It is indeed determined by the LFUN, see iconName() in
src/frontends/qt4/GuiApplication.cpp
The icon in the menus appears to be determined in Menu::Impl::populate
(see the empty QIcon()) in Menus.cpp.
Sorry, missed your post. I have just a single icon there. So every
(non-submenu) item show an icon now. Replacing
qMenu.addAction(new Action(QIcon(), label(*m),
by, for example,
qMenu.addAction(new Action(QIcon("images/box-insert.svgz"), label(*m),
However, this leads to very slow performance (on my dual core at least).
Could it be that this is because LyX creates the menus on the fly?
Daniel