4,641
edits
Changes
m
==Overruling GRAMPS icons, with fallback==
In GRAMPS version 2.4. Suppose you use the ''Buuf'' icon theme, and want to make your own custom gramps icons. Then do the following:
Gramps
Making custom icons for use in GRAMPSGramps
==Why do this==
The GRAMPS Gramps icon style is based on the Tango guidelines. If you use a different icon set, this might not fit in well. Normally the GTK stock icons should be taken from the theme you use, so paste, edit, add, ... should be conform. You can overrule those too however. ==Overruling Gramps icons, with fallback==In Gramps version 2.4. Suppose you use the ''Buuf'' icon theme, and want to make your own custom gramps icons. Then do the following:
===Preparation===
*In directories <code>Buuf/16x16</code>, <code>Buuf/22x22</code>, <code>and Buuf/scalable</code>, add the directory <code>gramps</code>.
*In these created gramps directories, make the icons with the corresponding sizes (scalable is for svg icons of size 48x48px), for the GRAMPS Gramps icons you want to overrule. Give the icons the correct gramps name, see [[GRAMPS Gramps icon set]].
===Overruling===
To make GRAMPS Gramps use these icons, save a backup of gramps_main.py and then open gramps_main.py. Change the following codelines, using the '''correct''' path names on your system:
iconpaths = [
(os.path.join(const.image_dir,'scalable'),'.svg'),
]
Your own icons are now visible in GRAMPSGramps. You could off course replace the GRAMPS Gramps icons in the images directory too, but the above method has less risk of deleting icons by error.
==Overrule GTK icons==
{ "22x22/actions/text_bold.png" }
}</nowiki>
shows how to find the gtk icon gtk-bold, and with which sizes. This can be easily changed to your liking. If you make an error, delete the file and restart GRAMPSGramps. The gtk-qt-engine will recreate it (on font/icon set change the file is also regenerated, so '''keep a backup of your changes''' to the file).
[[Category:Developers/Artwork]]