Vermont Energy Control Systems

Practical monitoring and control for the real world

Light Widget

Screenshot of a light widget screenshot of the code to create a light widget light widget in the menu bar

The light widget is a passive widget that displays status for discrete (on/off) elements. It is rectangular in shape and can display user-selected colors for the on and off states.

Besides the normal five required parameters, the light widget has five additional parameters. The first four are required.

Parameter Value in Example Description If Not PresentDefault
Height 20 Height in pixels Required 20
Width 20 Width in pixels Required 20
Off Color lightgreen Color for the 'off' state Required Grey
On Color green Color for the 'on' state Required Yellow
Label Text Status Label text to be displayed to left of widget No label Light