Difference between revisions of "HowToEditIcons"
m (link fix) |
m (→Procedure: update path to preferences (changed since 0.47)) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 9: | Line 9: | ||
=== Procedure === | === Procedure === | ||
As for the procedure, | As for the procedure, draw new icons in share/icons/icons.svg, group each icon and assign an id to the group via the "item properties" dialog (you can also use the XML editor), and then you specify that id for the corresponding [[verb]] in verbs.cpp (the last component of each line of props[]). | ||
I'd like everyone who commits icons.svg to also make sure they have the following in ~/.config/inkscape/preferences.xml, before they save the file: | |||
<group | |||
id="svgoutput" | |||
usenamedcolors="0" | |||
numericprecision="7" | |||
minimumexponent="-8" | |||
inlineattrs="1" | |||
indent="0" /> | |||
This makes quite a difference in file size, and for such time-critical file as this, every millisecond counts. Thanks! | |||
[[Category:Developer Documentation]] |
Latest revision as of 11:03, 20 September 2013
BULIA SAYS:
My opinion on the desirable icon style is here:
Other than that, it's difficult to give advice. All I can say is that e.g. the group/ungroup and z-order icons are ugly and noisy, while the flip icons are OK. Icons IMHO must be simple and laconic, not "realistic" or "3D". Just go on and try to draw something and we'll comment :)
Procedure
As for the procedure, draw new icons in share/icons/icons.svg, group each icon and assign an id to the group via the "item properties" dialog (you can also use the XML editor), and then you specify that id for the corresponding verb in verbs.cpp (the last component of each line of props[]).
I'd like everyone who commits icons.svg to also make sure they have the following in ~/.config/inkscape/preferences.xml, before they save the file:
<group id="svgoutput" usenamedcolors="0" numericprecision="7" minimumexponent="-8" inlineattrs="1" indent="0" />
This makes quite a difference in file size, and for such time-critical file as this, every millisecond counts. Thanks!