From: Chip Black Date: Mon, 12 Sep 2011 04:04:04 +0000 (-0500) Subject: Add global color list X-Git-Tag: v1.1.0~13 X-Git-Url: http://git.bytex64.net/?a=commitdiff_plain;h=d461d034b2d6a7774d71e7ea828d7b06c15e7d6b;hp=1c721a96d70dcffb50c33ee81c8df3d78ef0a28f;p=Hacks.git Add global color list --- diff --git a/colors.js b/colors.js new file mode 100644 index 0000000..521d04e --- /dev/null +++ b/colors.js @@ -0,0 +1,12 @@ +colorList = [ + "white", + "black", + "red", + "blue", + "yellow", + "green", + "magenta", + "cyan", + "orange", + "purple" +]; diff --git a/depends.js b/depends.js index 9a32b24..74d4e04 100644 --- a/depends.js +++ b/depends.js @@ -1,4 +1,5 @@ enyo.depends( + "colors.js", "Main.js", "Main.css", "HackPreferences.js", diff --git a/hacks/Nimbus/Nimbus.js b/hacks/Nimbus/Nimbus.js index 7bc5c7c..09d5007 100644 --- a/hacks/Nimbus/Nimbus.js +++ b/hacks/Nimbus/Nimbus.js @@ -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)'} ]} ],