I'm working on a Java project making use of SWT where I wanted a nice user interface for the configuration panel: something modern and nice looking. I was inspired by the simple design of Gnome 3.
SWT widget does not provide a switch button out of the box. Various projects are proposing a switch button and I’ve tried many of them without falling in love with any. The best one is proposed by Opal project, but it misses some feature and had drawing issue in some edges cases.
I've fork the widget to propose my own version.
The code is available on github.
See how it looks.