# Is it possible to customize the icon of an extension on the toolbar? [closed]

Recently I installed one of the "flat icon" sets for LibreOffice which suits my tastes nicely. I also use the Alternative dialog Find & Replace extension and have its icon on my toolbar:

It makes an uneasy partner (shall we say!) in this context. I have tried to find out how to change the icon of an extension, but the "Alternative Searching" toolbar does not show up in the Tools > Customise... menu, nor does the Tools > Extension Manager... give access to this kind of modification.

I have seen a previous answer to a question about the location of toolbar icons, but this seems not to cover extensions.

Any help out there? I live in hope!

edit retag reopen merge delete

### Closed for the following reason the question is answered, right answer was accepted by Alex Kemp close date 2015-11-02 03:01:21.765868

Sort by » oldest newest most voted

The downloadable OXT is essentially a ZIP file. Before you install the extension you can open it and replace these icons in the AltSearch/ directory:

• altsearch_16.bmp
• altsearch_26.bmp
• altsearchz_16.bmp
• altsearchz_26.bmp

Perhaps use /sfx2/imglst/actionaction012.png or /cmd/lc_searchdialog.png from the flat icon set. They will need to be rescaled (for the _16 versions) and saved as BMP using "magic pink" for transparency.

more

Thanks - will follow up as able and report back. BMPs are a right pain, aren't they. :/

( 2013-06-06 16:58:12 +0200 )edit

It worked. :) Actually, though it's *_26.bmp, not *_24.bmp. I'm not quite sure how one gets the "transparent" bg with a BMP, but I just went with #ccc, and it's close enough. Better than the green, anyway! Is this better?

( 2013-06-06 23:03:58 +0200 )edit
2

The way to fake transparency in a BMP is to set pixels to RGB 255,0,255 or HTML #FF00FF also known as "Magic Pink" :)

( 2013-06-07 02:37:30 +0200 )edit

@Pedro beat me to it. I wish the extension in question would just drop the old Windows icon technology and use PNGs. @David, I updated my answer to correct the BMP names. Thanks for that.

( 2013-06-07 02:41:20 +0200 )edit

Thanks @Pedro & @oweng - did I mention BMPs are a pain? ;) Getting rid of the "halo" was getting irksome, so I called it a day. Improved yet further, but there would be two advantages to extension author updating icons to PNG: (1) would be better!, and (2) he would lose the red "Warning" about no new update in a year from the download site. Thanks again for help with this trivial matter - appreciated!

( 2013-06-07 09:27:42 +0200 )edit

@oweng - Btw - I used the "search" icon from the SVG set (rather than PNG) as suggested in your original reply. Rescaling the PNG made for a fuzzy icon, but could set SVG to proper size in Inkscape, export, and keep things crisp. FWIW!

( 2013-06-07 09:31:42 +0200 )edit
1

Great! Thanks a lot! I preferred editing the icons directly in place (e.g. somewhere under ".../libreoffice/4/user/uno_packages/cache/uno_packages/....tmp_" and simply converted the original icons to BW and added "Magic Pink" background. Although I still have a few color icons in the new Sifr icon style (e.g. Save As, optimum column width, insert/delete column/icon, etc.) which look a bit out of place among the rest of the icons.

( 2014-05-10 16:01:24 +0200 )edit