Add global color list
authorChip Black <bytex64@bytex64.net>
Mon, 12 Sep 2011 04:04:04 +0000 (23:04 -0500)
committerChip Black <bytex64@bytex64.net>
Mon, 12 Sep 2011 04:04:25 +0000 (23:04 -0500)
colors.js [new file with mode: 0644]
depends.js
hacks/Nimbus/Nimbus.js

diff --git a/colors.js b/colors.js
new file mode 100644 (file)
index 0000000..521d04e
--- /dev/null
+++ b/colors.js
@@ -0,0 +1,12 @@
+colorList = [
+       "white",
+       "black",
+       "red",
+       "blue",
+       "yellow",
+       "green",
+       "magenta",
+       "cyan",
+       "orange",
+       "purple"
+];
index 9a32b24..74d4e04 100644 (file)
@@ -1,4 +1,5 @@
 enyo.depends(
+       "colors.js",
        "Main.js",
        "Main.css",
        "HackPreferences.js",
index 7bc5c7c..09d5007 100644 (file)
@@ -43,9 +43,10 @@ enyo.kind({
        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)'}
                ]}
        ],