- for color in sorted(COLOURS.keys()):
- light_tool = ImageButton('32', light_config["type"] + '.png',
- pos=(x, height), name=color,
- transform=Multiply(colour=COLOURS[color]))
+ self._light_toolbar = []
+ colour_combos = light_config["available_colours"]
+ for combo in colour_combos:
+ colours = combo.split("/")
+ light_fitting = light_fitting_by_type(light_config["type"])
+ light_tool = ImageButton(
+ "32", light_fitting, transform=ColourWedges(colours=colours),
+ pos=(x, height), name=combo)
+ light_tool.colours = colours