Added red, green color list for warning.

1. Added correct color codes for warnings.
2. Bugfix for dismissing time-picker dialog.