incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject svn commit: r952698 - /incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/Component.js
Date Tue, 08 Jun 2010 15:36:21 GMT
Author: zoe
Date: Tue Jun  8 15:36:20 2010
New Revision: 952698

URL: http://svn.apache.org/viewvc?rev=952698&view=rev
Log:
ARIES-319 Small modifications to take theme references out of Component

Modified:
    incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/Component.js

Modified: incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/Component.js
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/Component.js?rev=952698&r1=952697&r2=952698&view=diff
==============================================================================
--- incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/Component.js (original)
+++ incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/Component.js Tue
Jun  8 15:36:20 2010
@@ -300,15 +300,15 @@ updateAfterMove : function() {
 },
 pulse : function() {
 	if(this.selected) {
-		var endColor = theme.bundleOutlineColor1;
+		var endColor = this.componentAppearance.getOutlineColor1();
 	} else { 
-		var endColor = theme.bundleOutlineColor0;
+		var endColor =  this.componentAppearance.getOutlineColor0();
 	}
 	dojox.gfx.fx.animateStroke( {
 		shape : this.outline,
 		duration : 500,
 		color : {
-			start : theme.bundleOutlineColor2,
+			start :  this.componentAppearance.getOutlineColor2(),
 			end : endColor
 		},
 		width : {
@@ -322,15 +322,15 @@ pulse : function() {
 },
 glow : function() {
 	if(this.selected) {
-		var endColor = theme.bundleOutlineColor1;
+		var endColor =  this.componentAppearance.getOutlineColor1();
 	} else {
-		var endColor = theme.bundleOutlneColor0;
+		var endColor =  this.componentAppearance.getOutlineColor0(); 
 	}
 	dojox.gfx.fx.animateStroke( {
 		shape : this.outline,
 		duration : 500,
 		color : {
-			start : theme.bundleOutlineColor2,
+			start :  this.componentAppearance.getOutlineColor2(),
 			end : endColor
 		},
 		width : {
@@ -350,7 +350,7 @@ onClick : function() {
 onMouseEnter : function() {
 	this.outline.setStroke( {
 		width : 3,
-		color : theme.bundleOutlineColor1 
+		color :  this.componentAppearance.getOutlineColor1() 
 	});
 	this.selected = true;
 	dojo.publish("goat.component.onenter." + this.id, [ this ]);



Mime
View raw message