seitime-frappe/frappe/docs/user/zh/guides/app-development/custom-module-icon.md
Loocor c43d1fac59 frappe chinese document translation plan (#4689)
* [add] Chinese documents init.

* Videos chinese document translated

* Bench chinese documents translated half

* Bench chinese documents translated

* Fixed several mistakes for bench guides

* Frappé Tutorial chinese version in translation
2018-01-23 14:50:46 +05:30

618 B
Executable file

Custom Module Icon

If you want to create a custom icon for your module, you will have to create an SVG file for your module and set the path to this file in the desktop/config.py of your app.

This icon is loaded via AJAX first time, then it will be rendered.

Example:

from frappe import _

def get_data():
	return {
		"Frappé Apps": {
			"color": "orange",
			"icon": "assets/frappe/images/frappe.svg",
			"label": _("Frappé.io Portal"),
			"type": "module"
		}
	}

PS: A great place to buy SVG icons for a low cost is the awesome Noun Project