Ubuntu – What are the design guidelines for appindicator icons

application-developmentdesigniconsindicatorpygi

I am creating a Unity AppIndicator using Python + PyGObject, but I wish for it's icon to be in standard Ubuntu style. Where can I find appropriate guidelines for using colours (or is it just white/transparent?), or at least icons of standard AppIndicators? That is about 13.04, as I suppose, the icon style won't change much after this version (though we'll see).

Also, I have a question about setting my icon to my indicator. If I put it in the same folder, as the .py file, how should I refer to it in the code?

Best Answer

To use custom icon located in python script folder, use this way (PyGI code snippet)

appindicator.Indicator.new_with_path (
   "indicator-name",
   "icon-name",
   appindicator.IndicatorCategory.APPLICATION_STATUS,
   os.path.dirname(os.path.realpath(__file__))