Difference between revisions of "HowToEditIcons"

From Inkscape Wiki
Jump to navigation Jump to search
m
m (→‎Procedure: update path to preferences (changed since 0.47))
 
Line 11: Line 11:
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[]).
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 ~/.inkscape/preferences.xml, before they save the file:
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
   <group

Latest revision as of 11:03, 20 September 2013

BULIA SAYS:

My opinion on the desirable icon style is here:

IconsStyle

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!