Fixed color dialog.
Re-implemented most tests.