samedi, juin 27, 2009

How to change applications icons in OOo ...

1) Watch them all. They mostly are located in default_images/svx default_images/framework, setup_native/source/win32/nsis , default_images/res, and in sysui/source/desktop/icons and some other place I could have missed there.

2) localize them exactly, e.g. using The Gimp on Linux, Apercu on Mac , don't remember what tool I used on Windows, maybe it was automatic.

3) rename all the one who can cause issue with what you want to achieve

4) build OOo. e.g. trunk can be a good choice, if you want to test the new localization scheme

Note: trunk means the current milestone, means the to-be-DEV300_m51

5) Missing icons (i.e. renamed icons) will make the build break. This is normal, and every time the build breaks, you'll have to modify all the code calling the missing icons at buildtime (e.g. using ifdef YOUR_VARIABLE or whatever other hack), and to add your icon(s) with their new own icon names (the one you introduced in the code instead), all at the original place.

6) verify both old icons and the new one can live together at builtime, and that you can build both on all OS's

7) continue with all modules until the build ends. Think to take some coffee, this might be a long process.


And if you are serious, you'll have something correct at the end :-)

Nothing is perfect and you probably missed some at the begining. So, if you forgot some, repeat the process until you no longer see old application icons.

Be carefull, the image formats are different on every platform, and all builds are mandatory

Simple, isn't it ?

[Upgrade] : looks like we have lot of unused icons in OOo. Will remove them per see :)

Libellés : , , , ,