Skip to content

Commit

Permalink
remove multilink for changing background color, see #109
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Mar 7, 2025
1 parent 02c4e0e commit b80c5f7
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions js/coins/view/CoinsScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
*/

import CoinsModel from 'model/CoinsModel.js';
import Multilink from '../../../../axon/js/Multilink.js';
import Vector2 from '../../../../dot/js/Vector2.js';
import Tandem from '../../../../tandem/js/Tandem.js';
import { SystemType } from '../../common/model/SystemType.js';
import QuantumMeasurementColors from '../../common/QuantumMeasurementColors.js';
import QuantumMeasurementConstants from '../../common/QuantumMeasurementConstants.js';
import QuantumMeasurementScreenView from '../../common/view/QuantumMeasurementScreenView.js';
import SceneSelectorRadioButtonGroup from '../../common/view/SceneSelectorRadioButtonGroup.js';
Expand Down Expand Up @@ -68,17 +66,6 @@ export default class CoinsScreenView extends QuantumMeasurementScreenView {
quantumCoinsExperimentSceneView,
experimentTypeRadioButtonGroup
];

// Changing the background color based on the experiment type
Multilink.multilink(
[
model.experimentTypeProperty,
QuantumMeasurementColors.classicalBackgroundColorProperty,
QuantumMeasurementColors.quantumBackgroundColorProperty
],
( experimentType, classicalBackgroundColor, quantumBackgroundColor ) => {
QuantumMeasurementColors.screenBackgroundColorProperty.value = experimentType === SystemType.CLASSICAL ? classicalBackgroundColor : quantumBackgroundColor;
} );
}

public override reset(): void {
Expand Down

0 comments on commit b80c5f7

Please sign in to comment.