Add color to subscription objects. This should prevent the color scheme from changing unpredictably when extra courses are added.
Selecting the right color for a new course becomes a mater of removing all used colors and selecting the first unused one. If all the colors have been used we start over with a complete set of colors.
Existing data will need to be upgraded, as we don't want to keep the
legacy code around as a fallback.
This update also paves the way for allowing user defined color-schemes.
Add color to subscription objects. This should prevent the color scheme from changing unpredictably when extra courses are added.
Selecting the right color for a new course becomes a mater of removing all used colors and selecting the first unused one. If all the colors have been used we start over with a complete set of colors.
Existing data will need to be upgraded, as we don't want to keep the legacy code around as a fallback.
This update also paves the way for allowing user defined color-schemes.