fix gradient opt
fix color dialog position