Skip to content

Commit

Permalink
More adjustments to homeScreen/nav-bar icons #139 and #55
Browse files Browse the repository at this point in the history
  • Loading branch information
Denz1994 committed Jan 27, 2020
1 parent 9a61b44 commit ddbbac5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions js/multiple/MultipleScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ define( require => {
wrapperNode.addChild( moleculeIconTwo );

// Adjust the position of the molecule icons.
moleculeIconOne.center = wrapperNode.center.minusXY( 250, 100 );
moleculeIconTwo.center = wrapperNode.center.minusXY( 0, 100 );
moleculeIconOne.center = wrapperNode.center.minusXY( 270, 85 );
moleculeIconTwo.center = wrapperNode.center.minusXY( 5, 85 );
const options = {
name: titleMultipleString,
homeScreenIcon: wrapperNode
Expand Down
5 changes: 3 additions & 2 deletions js/playground/PlaygroundScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ define( require => {
moleculeNode.transformMolecule( transformMatrix );
}
moleculeNode.draw();
const node = new Image( moleculeNode.canvas.toDataURL() );
const moleculeIcon = new Image( moleculeNode.canvas.toDataURL() );
const wrapperNode = new Rectangle( 0, 0, 548, 373, {
fill: BAMConstants.CANVAS_BACKGROUND_COLOR
} );
wrapperNode.addChild( node );
wrapperNode.addChild( moleculeIcon );
moleculeIcon.center = wrapperNode.center.minusXY( 275, 185 );

const options = {
name: titlePlaygroundString,
Expand Down
7 changes: 5 additions & 2 deletions js/single/SingleScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,14 @@ define( require => {
moleculeNode.transformMolecule( transformMatrix );
}
moleculeNode.draw();
const node = new Image( moleculeNode.canvas.toDataURL() );
const moleculeIcon = new Image( moleculeNode.canvas.toDataURL(), { scale: .85 } );
const wrapperNode = new Rectangle( 0, 0, 548, 373, {
fill: BAMConstants.CANVAS_BACKGROUND_COLOR
} );
wrapperNode.addChild( node );
wrapperNode.addChild( moleculeIcon );

// Adjust the position of the molecule icons.
moleculeIcon.center = wrapperNode.center.minusXY( 240, 140 );

const options = {
name: titleSingleString,
Expand Down

0 comments on commit ddbbac5

Please sign in to comment.