Start here
Libraries
On/off switch widget.
Bases: Widget
Widget
Pill track with sliding knob for boolean on/off.
Flip the switch between on and off.
Draw the pill track and the knob at the on/off position.