Anatomy of a Widget

How to found the Widget folder path

  1. Right click one of the widget on your desktop and select the menuitem "Window > Open Folder" to open the widget's folder path. Go up level to a folder named "Widgets", it is the RainWidget's Widgets folder path.

  2. Or Open the AddWidget window, right click one of the widget in list and select the menuitem "Open Folder” to open the widget's folder path

    . Go up level to a folder named "Widgets", it is the RainWidget's Widgets folder path.

Widget's files

  1. "widget.json" file: It is used to describe the information of the widget,for excample: Widget name,size,author . it also include the measures of the widget.

  2. "index.html" file: It is used to describe the widget UI via HTML5/CSS3/Javascript

  3. "preview.jpg" file: every widget need a JPEG image file named "preview.jpg" to display the preview.

Last updated