Skip to content

Commit

Permalink
#107 factor out font constant
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <[email protected]>
  • Loading branch information
pixelzoom committed Nov 12, 2018
1 parent 9238e85 commit 438bd98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions js/common/GQConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ define( require => {
GRAPHED_EQUATION_FONT: new PhetFont( 18 ),
INTERACTIVE_EQUATION_FONT: new PhetFont( 26 ),
COORDINATES_FONT: new PhetFont( { size: 16, weight: 'bold' } ),
NO_REAL_ROOTS_FONT: new PhetFont( { size: 18, weight: 'bold' } ),

// line widths
INTERACTIVE_QUADRATIC_LINE_WIDTH: 4,
Expand Down
4 changes: 2 additions & 2 deletions js/standardform/view/NoRealRootsNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ define( require => {
const Bounds2 = require( 'DOT/Bounds2' );
const DerivedProperty = require( 'AXON/DerivedProperty' );
const GQColors = require( 'GRAPHING_QUADRATICS/common/GQColors' );
const GQConstants = require( 'GRAPHING_QUADRATICS/common/GQConstants' );
const graphingQuadratics = require( 'GRAPHING_QUADRATICS/graphingQuadratics' );
const Node = require( 'SCENERY/nodes/Node' );
const PhetFont = require( 'SCENERY_PHET/PhetFont' );
const Rectangle = require( 'SCENERY/nodes/Rectangle' );
const Tandem = require( 'TANDEM/Tandem' );
const Text = require( 'SCENERY/nodes/Text' );
Expand All @@ -41,7 +41,7 @@ define( require => {
}, options );

const textNode = new Text( noRealRootsString, {
font: new PhetFont( { size: 18, weight: 'bold' } ),
font: GQConstants.NO_REAL_ROOTS_FONT,
fill: 'white',
maxWidth: 300 // determined empirically
} );
Expand Down

0 comments on commit 438bd98

Please sign in to comment.