Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.07 KB

CONTRIBUTING.md

File metadata and controls

25 lines (15 loc) · 1.07 KB

Here’s how to add an icon to Lawnicons.

  1. Prepare your icon in the SVG format, adhering to the following guidelines. Use snake case for the filename (e.g., youtube_music.svg).

  2. Add the ready SVG to the svgs directory.

  3. 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.

  4. Add a new line to app/src/main/res/xml/grayscale_icon_map.xml, 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]" />
  5. Done! You’re ready to open a pull request. Please set develop as the base branch.