From 0a9fc7cb81773559b1419ee2e63a8b94bea5bbce Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Sat, 13 Jan 2024 18:46:39 -0700 Subject: [PATCH] strawman screen icons, https://github.com/phetsims/faradays-electromagnetic-lab/issues/28 --- js/electromagnet/ElectromagnetScreen.ts | 16 ++++++----- js/generator/GeneratorScreen.ts | 36 ++++++++++++++++++++----- js/pickup-coil/PickupCoilScreen.ts | 16 ++++++----- js/transformer/TransformerScreen.ts | 24 ++++++++++++----- 4 files changed, 67 insertions(+), 25 deletions(-) diff --git a/js/electromagnet/ElectromagnetScreen.ts b/js/electromagnet/ElectromagnetScreen.ts index 153d4333..22ccc831 100644 --- a/js/electromagnet/ElectromagnetScreen.ts +++ b/js/electromagnet/ElectromagnetScreen.ts @@ -13,11 +13,12 @@ import ElectromagnetScreenView from './view/ElectromagnetScreenView.js'; import FaradaysElectromagneticLabStrings from '../FaradaysElectromagneticLabStrings.js'; import FELColors from '../common/FELColors.js'; import ScreenIcon from '../../../joist/js/ScreenIcon.js'; -import { Rectangle } from '../../../scenery/js/imports.js'; +import { Image } from '../../../scenery/js/imports.js'; import Tandem from '../../../tandem/js/Tandem.js'; import { combineOptions } from '../../../phet-core/js/optionize.js'; import FELConstants from '../common/FELConstants.js'; import FELKeyboardHelpContent from '../common/view/FELKeyboardHelpContent.js'; +import battery_png from '../../images/battery_png.js'; export default class ElectromagnetScreen extends Screen { @@ -27,7 +28,7 @@ export default class ElectromagnetScreen extends Screen new ElectromagnetScreenView( model, tandem.createTandem( 'view' ) ), combineOptions( {}, FELConstants.SCREEN_OPTIONS, { name: FaradaysElectromagneticLabStrings.screen.electromagnetStringProperty, - homeScreenIcon: createHomeScreenIcon(), + homeScreenIcon: createScreenIcon(), createKeyboardHelpNode: () => new FELKeyboardHelpContent(), tandem: tandem } @@ -35,11 +36,14 @@ export default class ElectromagnetScreen extends Screen { @@ -27,7 +30,7 @@ export default class GeneratorScreen extends Screen new GeneratorScreenView( model, tandem.createTandem( 'view' ) ), combineOptions( {}, FELConstants.SCREEN_OPTIONS, { name: FaradaysElectromagneticLabStrings.screen.generatorStringProperty, - homeScreenIcon: createHomeScreenIcon(), + homeScreenIcon: createScreenIcon(), createKeyboardHelpNode: () => new FELKeyboardHelpContent(), tandem: tandem } @@ -35,12 +38,33 @@ export default class GeneratorScreen extends Screen { @@ -27,7 +28,7 @@ export default class PickupCoilScreen extends Screen new PickupCoilScreenView( model, tandem.createTandem( 'view' ) ), combineOptions( {}, FELConstants.SCREEN_OPTIONS, { name: FaradaysElectromagneticLabStrings.screen.pickupCoilStringProperty, - homeScreenIcon: createHomeScreenIcon(), + homeScreenIcon: createScreenIcon(), createKeyboardHelpNode: () => new FELKeyboardHelpContent(), tandem: tandem } @@ -35,12 +36,15 @@ export default class PickupCoilScreen extends Screen { @@ -27,7 +29,7 @@ export default class TransformerScreen extends Screen new TransformerScreenView( model, tandem.createTandem( 'view' ) ), combineOptions( {}, FELConstants.SCREEN_OPTIONS, { name: FaradaysElectromagneticLabStrings.screen.transformerStringProperty, - homeScreenIcon: createHomeScreenIcon(), + homeScreenIcon: createScreenIcon(), createKeyboardHelpNode: () => new FELKeyboardHelpContent(), tandem: tandem } @@ -35,12 +37,20 @@ export default class TransformerScreen extends Screen