Make both the simulator color picker and the Blockly editor color picker match in shape and the colors as well as order of colors. (#474)

This commit is contained in:
Sam El-Husseini
2018-04-09 16:48:57 -07:00
committed by GitHub
parent d5b4ec5255
commit 6d29cd40cb
2 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@ namespace sensors {
//% blockId=colorEnumPicker block="%color" shim=TD_ID
//% weight=0 blockHidden=1 turnRatio.fieldOptions.decompileLiterals=1
//% color.fieldEditor="colorenum"
//% color.fieldOptions.colours='["#f12a21", "#ffd01b", "#006db3", "#00934b", "#ffffff", "#6c2d00", "#000000"]'
//% color.fieldOptions.colours='["#f12a21", "#ffd01b", "#006db3", "#00934b", "#000000", "#6c2d00", "#ffffff"]'
//% color.fieldOptions.columns=2 color.fieldOptions.className='legoColorPicker'
export function __colorEnumPicker(color: ColorSensorColor): number {
return color;