Welcome to the Lawnicons contributing guide! This file will tell you what you need to know to contribute to Lawnicons.
See the below image for a summary of the icon guidelines. If you don't follow them, a team member will likely request changing the icons.
In addition to the above, the icons must have an outlined (not filled) style. If the original icon has a filled style, you should change the icon to adhere to the guidelines as seen below.
Here’s how to add an icon to Lawnicons:
-
Prepare your icon in the SVG format, adhering to the above guidelines. Use snake case for the filename (e.g.,
youtube_music.svg
). -
Add the ready SVG to the
svgs
directory. -
Using Android Studio, convert the SVG to an XML drawable, and add the XML drawable to the
app/src/main/res/drawable
directory. Use snake case for the drawable name (e.g.youtube_music
). You can keep all settings at their defaults. -
Add a new line to
app/src/main/res/xml/grayscale_icon_map.xml
(in alphabetical order), and map the new icon to a package name and app name. For example:<icon drawable="@drawable/twitter" package="com.twitter.android" name="Twitter" />
A general template is as follows:
<icon drawable="@drawable/[DRAWABLE NAME]" package="[PACKAGE NAME]" name="[APP NAME]" />
-
Done! You’re ready to open a pull request. Please set
develop
as the base branch.