diff options
author | Eric Guzman | 2012-03-02 10:55:51 -0800 |
---|---|---|
committer | Eric Guzman | 2012-03-02 10:55:51 -0800 |
commit | 1433f2bdf2e5b8c5c18fed5e9c17fd983ab3606d (patch) | |
tree | 885ed3352f89e124bca7261d7c0edd4c95d3fff5 /js/components | |
parent | 53bdb1e7773069c4cca59e88d6da91cd0f58c94a (diff) | |
download | ninja-1433f2bdf2e5b8c5c18fed5e9c17fd983ab3606d.tar.gz |
CSS Panel - Updating components, created toolbar components, and small changes to styles controller
Diffstat (limited to 'js/components')
-rw-r--r-- | js/components/toolbar.reel/toolbar.css | 14 | ||||
-rw-r--r-- | js/components/toolbar.reel/toolbar.html | 34 | ||||
-rw-r--r-- | js/components/toolbar.reel/toolbar.js | 27 |
3 files changed, 75 insertions, 0 deletions
diff --git a/js/components/toolbar.reel/toolbar.css b/js/components/toolbar.reel/toolbar.css new file mode 100644 index 00000000..1ffae912 --- /dev/null +++ b/js/components/toolbar.reel/toolbar.css | |||
@@ -0,0 +1,14 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | .toolbar-container { | ||
7 | background-color: #474747; | ||
8 | border-bottom: 1px solid #333; | ||
9 | border-top: 1px solid #505050; | ||
10 | box-shadow: 0 4px 8px 0px rgba(0,0,0,0.75); | ||
11 | height: 22px; | ||
12 | width: 100%; | ||
13 | -webkit-box-flex: 0; | ||
14 | } \ No newline at end of file | ||
diff --git a/js/components/toolbar.reel/toolbar.html b/js/components/toolbar.reel/toolbar.html new file mode 100644 index 00000000..8ccce126 --- /dev/null +++ b/js/components/toolbar.reel/toolbar.html | |||
@@ -0,0 +1,34 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- <copyright> | ||
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
5 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
6 | </copyright> --> | ||
7 | <html lang="en"> | ||
8 | <head> | ||
9 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
10 | <link href="toolbar.css" rel="stylesheet" type="text/css"> | ||
11 | <script type="text/montage-serialization"> | ||
12 | { | ||
13 | "owner": { | ||
14 | "module" : "js/panels/css-panel/style-sheet.reel", | ||
15 | "name" : "StyleSheet", | ||
16 | "properties" : { | ||
17 | "element" : {"#" : "toolbar-container"} | ||
18 | } | ||
19 | }, | ||
20 | "button": { | ||
21 | "module": "js/components/button.reel", | ||
22 | "name": "Button", | ||
23 | "properties": { | ||
24 | |||
25 | } | ||
26 | } | ||
27 | } | ||
28 | </script> | ||
29 | </head> | ||
30 | <body> | ||
31 | <div id="toolbar-container" class="toolbar-container"> | ||
32 | </div> | ||
33 | </body> | ||
34 | </html> \ No newline at end of file | ||
diff --git a/js/components/toolbar.reel/toolbar.js b/js/components/toolbar.reel/toolbar.js new file mode 100644 index 00000000..79e7ff1f --- /dev/null +++ b/js/components/toolbar.reel/toolbar.js | |||
@@ -0,0 +1,27 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | var Montage = require("montage/core/core").Montage, | ||
8 | Component = require("montage/ui/component").Component; | ||
9 | |||
10 | exports.Toolbar = Montage.create(Component, { | ||
11 | |||
12 | deserializedFromTemplate : { | ||
13 | value: function() { | ||
14 | console.log("toolbar - deserialized"); | ||
15 | } | ||
16 | }, | ||
17 | prepareForDraw : { | ||
18 | value: function() { | ||
19 | console.log("toolbar - prepare for draw"); | ||
20 | } | ||
21 | }, | ||
22 | draw : { | ||
23 | value: function() { | ||
24 | console.log("toolbar - draw"); | ||
25 | } | ||
26 | } | ||
27 | }); \ No newline at end of file | ||