Skip to content

Commit

Permalink
Removing excessive Color casts for backgroundColorProperty, see phets…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Feb 2, 2017
1 parent 0ea2869 commit 037ed36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions js/make-a-ten/adding/MakeATenAddingScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ define( function( require ) {
var inherit = require( 'PHET_CORE/inherit' );
var Screen = require( 'JOIST/Screen' );
var Property = require( 'AXON/Property' );
var Color = require( 'SCENERY/util/Color' );

// images
var addingHomeScreenImage = require( 'image!MAKE_A_TEN/adding-home-screen.png' );
Expand All @@ -34,7 +33,7 @@ define( function( require ) {

var options = {
name: screenAddingString,
backgroundColorProperty: new Property( Color.toColor( MakeATenConstants.SCREEN_BACKGROUND_COLOR ) ),
backgroundColorProperty: new Property( MakeATenConstants.SCREEN_BACKGROUND_COLOR ),
homeScreenIcon: MakeATenUtil.createIconWithBackgroundColor( addingHomeScreenImage, MakeATenConstants.SCREEN_BACKGROUND_COLOR ),
navigationBarIcon: MakeATenUtil.createIconWithBackgroundColor( addingNavBarImage, MakeATenConstants.SCREEN_BACKGROUND_COLOR )
};
Expand Down
3 changes: 1 addition & 2 deletions js/make-a-ten/explore/MakeATenExploreScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ define( function( require ) {
var inherit = require( 'PHET_CORE/inherit' );
var Screen = require( 'JOIST/Screen' );
var Property = require( 'AXON/Property' );
var Color = require( 'SCENERY/util/Color' );

// images
var exploreHomeScreenImage = require( 'image!MAKE_A_TEN/explore-home-screen.png' );
Expand All @@ -34,7 +33,7 @@ define( function( require ) {

var options = {
name: screenExploreString,
backgroundColorProperty: new Property( Color.toColor( MakeATenConstants.SCREEN_BACKGROUND_COLOR ) ),
backgroundColorProperty: new Property( MakeATenConstants.SCREEN_BACKGROUND_COLOR ),
homeScreenIcon: MakeATenUtil.createIconWithBackgroundColor( exploreHomeScreenImage, MakeATenConstants.SCREEN_BACKGROUND_COLOR ),
navigationBarIcon: MakeATenUtil.createIconWithBackgroundColor( exploreNavBarImage, MakeATenConstants.SCREEN_BACKGROUND_COLOR )
};
Expand Down
3 changes: 1 addition & 2 deletions js/make-a-ten/game/MakeATenGameScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ define( function( require ) {
var inherit = require( 'PHET_CORE/inherit' );
var Screen = require( 'JOIST/Screen' );
var Property = require( 'AXON/Property' );
var Color = require( 'SCENERY/util/Color' );

// images
var gameHomeScreenImage = require( 'image!MAKE_A_TEN/game-home-screen.png' );
Expand All @@ -35,7 +34,7 @@ define( function( require ) {

var options = {
name: screenGameString,
backgroundColorProperty: new Property( Color.toColor( MakeATenConstants.SCREEN_BACKGROUND_COLOR ) ),
backgroundColorProperty: new Property( MakeATenConstants.SCREEN_BACKGROUND_COLOR ),
homeScreenIcon: MakeATenUtil.createIconWithBackgroundColor( gameHomeScreenImage, MakeATenConstants.SCREEN_BACKGROUND_COLOR ),
navigationBarIcon: MakeATenUtil.createIconWithBackgroundColor( gameNavBarImage, MakeATenConstants.SCREEN_BACKGROUND_COLOR )
};
Expand Down

0 comments on commit 037ed36

Please sign in to comment.