fixed a bug of customizing colors

Signed-off-by: Gerald <gera2ld@163.com>