Added touch support in color dialog.
Added better compability.