Santiago Hirschfeld wrote:
I'm using KDE now, and i wonder, how can i change the default icons in the toolbar of LyX?
I am afraid you can't without recompiling whole thing --
What makes you say that?
What appears in the menu and toolbars is controlled by an external file. If you fire up LyX and open the Edit->Preferences dialog, you'll see a "User interface file" entry at the top of the "Look and feel->User interface" pane. (I assume that you're using the Qt frontend.) This is set, by default, to a file "default.ui".
Copy "$PREFIX/share/lyx/ui/default.ui" to "$HOME/.lyx/ui/default.ui" or to some other file name if you change the file in the Edit->Preferences dialog. Edit this file to taste.
The toolbar entries, eg Icon "graphics-insert", detail the LFUN that will be executed when you press the button. Thus, add or remove entries to alter the contents of the toolbar.
The names of the image files associated with each LFUN cannot be changed. Ie, there is a direct correspondence between LFUN and image file name. Thus you'll find "$PREFIX/share/lyx/images/graphics-insert.xpm" Insert your own version of this file in "$HOME/.lyx/images/graphics-insert.xpm"
LyX is Qt, not KDE application, and some things (notably menus and
> toolbars) are done in LyX itself not by Qt/KDE. I think it is a > design flaw of LyX, but that's another question (well, I think that > relying on XForms as a first UI toolkit is a design flaw in itself,
but that highly flammable and off-topic).
I think we're coming round to the idea of just dropping XForms. Angus
