Don't you like the  ?-character  in you customized toolbar and would
like have your own icons?
Here is the way to do it:

1. create the icon(s) in xpm format and put it at   ~/images/    (LyX
sourcecode).
            20x20 pixel, backgroundcolor #BFBFBFBFBFBF, colored icons in
2 variants
            ( name.xpm and name_bw.xpm, where the last is the
black-white variant ).
             If you don't have a program like pixmap you can use an
ascii-editor.

2. open the file   ~/src/Makefile.in  ,  and insert line(s) like this:
                 ../images/name.xpm \
            or for several icons
                  ../images/name1.xpm ../images/name2.xpm \

3.  open the file   ~/src/LyXAction.C   ,  and search for your
LyX-command.
           You should find a line like this:
                 {"lyx-command",               LFUN_COMMAND},

4. open the file   ~/src/toolbar.C   ,  and insert following lines for
each icon:
          #include "name.xpm"    and/or    #include "name_bw.xpm"
          case LFUN_COMMAND:     pixmap = name_xpm; break;

5. recompile the sourcecode


regards

--
  Ralph D�ring


Reply via email to