+colorList = [
+ "white",
+ "black",
+ "red",
+ "blue",
+ "yellow",
+ "green",
+ "magenta",
+ "cyan",
+ "orange",
+ "purple"
+];
enyo.depends(
+ "colors.js",
"Main.js",
"Main.css",
"HackPreferences.js",
perspective: 0.3,
preferences: [
{name: "intensity", label: "Intensity", kind: "Slider", maximum: 1, minimum: 0, snap: 0.01},
- {name: "rainColor", label: "Rain Color", kind: "ListSelector", items: ["gray", "black", "blue", "red"]},
+ {name: "rainColor", label: "Rain Color", kind: "ListSelector", items: colorList},
{name: "backgroundColor", label: "Background Color", kind: "ListSelector", items: [
{caption: "white", value: 'rgba(255,255,255,0.7)'},
+ {caption: "gray", value: 'rgba(128,128,128,0.7)'},
{caption: "black", value: 'rgba(0,0,0,0.7)'}
]}
],