Refactoring TupColorWidget class