Skip to content

Commit

Permalink
use title font, phetsims/buoyancy#150
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed May 15, 2024
1 parent d972f29 commit 58d0da7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/buoyancy/view/BuoyancyLabScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import Bounds2 from '../../../../dot/js/Bounds2.js';
import ScaleHeightControl from '../../common/view/ScaleHeightControl.js';
import fluid_displaced_scale_icon_png from '../../../images/fluid_displaced_scale_icon_png.js';
import AccordionBox from '../../../../sun/js/AccordionBox.js';
import PhetFont from '../../../../scenery-phet/js/PhetFont.js';
import CuboidView from '../../common/view/CuboidView.js';

// constants
Expand Down Expand Up @@ -64,7 +63,7 @@ export default class BuoyancyLabScreenView extends DensityBuoyancyScreenView<Buo
model.liquidMaterialProperty,
model.gravityProperty ), {
titleNode: new RichText( DensityBuoyancyCommonStrings.fluidDisplacedStringProperty, {
font: new PhetFont( 14 ), // Matches the checkbox label font size
font: DensityBuoyancyCommonConstants.TITLE_FONT,
maxWidth: 100,
lineWrap: 90,
maxHeight: 40
Expand Down

0 comments on commit 58d0da7

Please sign in to comment.