Use C++ style array for colorpalette and add some some color handling to widgets