https://wiki.blender.org/wiki/Source/Interface/Icons
- blender_icons.svg - Main icon sheets.
+ blender_icons/ - A folder with main icons.
blender_icons
- This is just a SVG image containing a grid of icons. A Python script exports this file into 2 PNG images using Inkscape, then cropped into .dat files using Blender.
+ These are just SVG images of each individual icon. A Python script combines these files into a single sheet, then exports this file into two PNG images using Inkscape, then cropped into .dat files using Blender.
How to edit icons
- Open blender_icons.svg in Inkscape
- Edit or add an icon in one of the empty rows, try to put it in a place where it makes sense (a row of similar icons), see UI_icons.h for reference.
+ The icons are simple SVG files that can be edited using any vector graphics software like Inkscape.
+ See file requirements below.
How to add a new icon
- Add the icon to blender_icons.svg
+ Add the icon to /release/datafiles/blender_icons/
+ See file requirements below.
Committing the icon
- blender_icons.svg
- Make sure that the changes only add the icon and nothing else (no header changes, metatags, etc).
+ example_name.svg,... SVG source files.
+ icon16_example_name.dat, icon32_example_name.dat,... files generated by the Python script.
+ File requirements
+ The filename must match the icon name defined in the "UI_icons.h", use lowercase e.g. "example_name.svg".
+ The SVG vector image format.
+ The document size is 16x16 pixels.
+ Use one of the existing icon as a template, or create a new document with a page width of 16 pixels and height of 16 pixels.
+ In the Inkscape you can select File > New from Template... > Icon... > Icon size: 16 > Create from template.
+ The icon color should be white (Hex:#FFFFFF, R:255 G:255 B:255).
+ Clear hidden items and unnecessary groups.
+ SVG images are XML text files, which means that they can be inspected and edited with any text editor.
+ Depending on the software used, export a plain or minified SVG code to reduce the file size.
+ In the Inkscape use Save As > Plain SVG (*.svg) or even better Save As > Optimized SVG (*.svg).