From da1d79642b822ed0dcf1d54b12f0a4a1cdb9d304 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Wed, 29 Jun 2022 14:37:59 -0600 Subject: [PATCH] tweak demo fonts, https://github.com/phetsims/scenery-phet/issues/747 --- js/demo/ComponentsScreenView.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/demo/ComponentsScreenView.js b/js/demo/ComponentsScreenView.js index 2e2559378..64673b4c6 100644 --- a/js/demo/ComponentsScreenView.js +++ b/js/demo/ComponentsScreenView.js @@ -1842,12 +1842,14 @@ function demoScientificNotationNode( layoutBounds ) { const showZeroExponentProperty = new BooleanProperty( false ); const showZeroExponentCheckbox = new Checkbox( showZeroExponentProperty, new Text( 'showZeroExponent', textOptions ) ); + const titleFont = new PhetFont( { size: 20, weight: 'bold' } ); + // controls for mantissa const mantissaBox = new VBox( { align: 'left', spacing: 20, children: [ - new Text( 'mantissa (M)', { font: new PhetFont( { size: 16, weight: 'bold' } ) } ), + new Text( 'mantissa (M)', { font: titleFont } ), mantissaControl, showIntegersAsMantissaOnlyCheckbox, showZeroAsIntegerCheckbox @@ -1859,7 +1861,7 @@ function demoScientificNotationNode( layoutBounds ) { align: 'left', spacing: 20, children: [ - new Text( 'exponent (E)', { font: new PhetFont( { size: 16, weight: 'bold' } ) } ), + new Text( 'exponent (E)', { font: titleFont } ), exponentControl, nullExponentCheckbox, showZeroExponentCheckbox @@ -1905,6 +1907,7 @@ function demoScientificNotationNode( layoutBounds ) { align: 'center', spacing: 20, children: [ + new Text( 'value', { font: titleFont } ), keypadValueText, keypad, clearButton