prepare color mode to gui