From 138da4b52049285dead085ff8349d6664b390eec Mon Sep 17 00:00:00 2001
From: Eric Guzman
Date: Tue, 13 Mar 2012 11:14:39 -0700
Subject: Presets Panel - Adding hover state to ninja-leaf
---
js/components/treeview/ninja-leaf.reel/ninja-leaf.css | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
(limited to 'js/components')
diff --git a/js/components/treeview/ninja-leaf.reel/ninja-leaf.css b/js/components/treeview/ninja-leaf.reel/ninja-leaf.css
index fedc1d9d..cc8108f6 100644
--- a/js/components/treeview/ninja-leaf.reel/ninja-leaf.css
+++ b/js/components/treeview/ninja-leaf.reel/ninja-leaf.css
@@ -3,7 +3,12 @@
No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
*/
-
+.treeRoot .branch-label, .treeRoot .leaf-label {
+ margin: 0 8px;
+}
+.treeRoot .leaf-label:hover {
+ margin: 0;
+}
.treeRoot .leaf-label {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAIAAAD9iXMrAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8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 3px 0 4px;
}
+.branch .branch .leaf-label:hover {
+ background-color: #333333;
+ background-position: 33px center;
+ padding-left: 53px;
+}
/* First level */
.branch .leaf-label {
padding-left: 25px;
@@ -26,4 +36,4 @@
.branch .branch .branch .leaf-label {
background-position: 45px center;
padding-left: 65px;
-}
\ No newline at end of file
+}
--
cgit v1.2.3
From 8ce3b7be494a703694acbf35e18e05c2fc91788b Mon Sep 17 00:00:00 2001
From: Eric Guzman
Date: Tue, 13 Mar 2012 11:28:45 -0700
Subject: Presets Panel - Add :active pseudo class for ninja-tree
---
js/components/treeview/ninja-leaf.reel/ninja-leaf.css | 3 +++
1 file changed, 3 insertions(+)
(limited to 'js/components')
diff --git a/js/components/treeview/ninja-leaf.reel/ninja-leaf.css b/js/components/treeview/ninja-leaf.reel/ninja-leaf.css
index cc8108f6..4b21947f 100644
--- a/js/components/treeview/ninja-leaf.reel/ninja-leaf.css
+++ b/js/components/treeview/ninja-leaf.reel/ninja-leaf.css
@@ -22,6 +22,9 @@
background-position: 33px center;
padding-left: 53px;
}
+.branch .branch .leaf-label:active {
+ background-color: #212121;
+}
/* First level */
.branch .leaf-label {
padding-left: 25px;
--
cgit v1.2.3
From e6637e3748911a64993c3f0caccee05b98f1eb0a Mon Sep 17 00:00:00 2001
From: Eric Guzman
Date: Tue, 13 Mar 2012 12:02:06 -0700
Subject: Presets Panel - Remove :active pseudo class from ninja-leaf
---
js/components/treeview/ninja-leaf.reel/ninja-leaf.css | 3 ---
1 file changed, 3 deletions(-)
(limited to 'js/components')
diff --git a/js/components/treeview/ninja-leaf.reel/ninja-leaf.css b/js/components/treeview/ninja-leaf.reel/ninja-leaf.css
index 4b21947f..cc8108f6 100644
--- a/js/components/treeview/ninja-leaf.reel/ninja-leaf.css
+++ b/js/components/treeview/ninja-leaf.reel/ninja-leaf.css
@@ -22,9 +22,6 @@
background-position: 33px center;
padding-left: 53px;
}
-.branch .branch .leaf-label:active {
- background-color: #212121;
-}
/* First level */
.branch .leaf-label {
padding-left: 25px;
--
cgit v1.2.3
From 8844b46dec5f36de04c1fc3a1b1b4d00e726a067 Mon Sep 17 00:00:00 2001
From: Jose Antonio Marquez
Date: Tue, 13 Mar 2012 13:20:28 -0700
Subject: Gradient stop logic
Made logic changes to allow for a minimum number of gradients to remain at 2 at all times and not apply default colors.
---
.../gradientpicker.reel/gradientpicker.js | 22 +++++++---------------
1 file changed, 7 insertions(+), 15 deletions(-)
(limited to 'js/components')
diff --git a/js/components/gradientpicker.reel/gradientpicker.js b/js/components/gradientpicker.reel/gradientpicker.js
index da4e8c0f..b10f6624 100755
--- a/js/components/gradientpicker.reel/gradientpicker.js
+++ b/js/components/gradientpicker.reel/gradientpicker.js
@@ -213,21 +213,13 @@ exports.GradientPicker = Montage.create(Component, {
removeStop: {
enumerable: false,
value: function(stop) {
- //Removing stops
- this.element._components.stopsContainer.removeChild(stop);
- //Stopping events related to this current stop
- this.removeStopMoving();
- //Resetting stops if less than 2
var i, buttons = this.element._components.stopsContainer.getElementsByTagName('button');
- if (buttons.length < 2) {
- //Removing remaining stops prior to resetting
- for (i=0; buttons[i]; i++) {
- this.element._components.stopsContainer.removeChild(buttons[i].stop);
- }
- //Nulling then adding defaults
- this.value = null;
- this.addDefaultStops();
- this._dispatchEvent('change', false);
+ //
+ if (buttons.length > 2) {
+ //Removing stops
+ this.element._components.stopsContainer.removeChild(stop);
+ //Stopping events related to this current stop
+ this.removeStopMoving();
}
}
},
@@ -327,7 +319,7 @@ exports.GradientPicker = Montage.create(Component, {
//
this.application.ninja.colorController.colorPopupManager.hideColorChipPopup();
//
- if ((e._event.y+this.hack.y) > this.element._trackY+50 || (e._event.y+this.hack.y) < this.element._trackY) {
+ if ((e._event.y+this.hack.y) > this.element._trackY+70 || (e._event.y+this.hack.y) < this.element._trackY) {
this.removeStop(this.currentStop);
}
//
--
cgit v1.2.3
From ca985ed7031af3f4e76d26fd5b99846620fc5733 Mon Sep 17 00:00:00 2001
From: Valerio Virgillito
Date: Tue, 13 Mar 2012 18:11:48 -0700
Subject: Some code cleanup - removing unused assignments.
Signed-off-by: Valerio Virgillito
---
js/components/layout/bread-crumb.reel/bread-crumb.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
(limited to 'js/components')
diff --git a/js/components/layout/bread-crumb.reel/bread-crumb.js b/js/components/layout/bread-crumb.reel/bread-crumb.js
index ab390fc6..f35972b6 100755
--- a/js/components/layout/bread-crumb.reel/bread-crumb.js
+++ b/js/components/layout/bread-crumb.reel/bread-crumb.js
@@ -71,8 +71,7 @@ exports.Breadcrumb = Montage.create(Component, {
// This is always the top container which is now hardcoded to body
this.containerElements.unshift({"node": parentNode, "nodeUuid":parentNode.uuid, "label": "Body"});
- // This is for the timeline -- Disable it since the timeline should not know about this object
- // NJevent('layerBinding',{selected:false ,element:this.container})
+
}
},
--
cgit v1.2.3