Skip to content

Commit

Permalink
rename checkbox colors in color profile, #69
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Sep 26, 2024
1 parent ee8d225 commit c82aa90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/common/MOTHAColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ const MOTHAColors = {
default: 'rgb( 0, 111, 153 )'
} ),

checkboxColorProperty: new ProfileColorProperty( modelsOfTheHydrogenAtom, 'checkboxColor', {
checkboxStrokeProperty: new ProfileColorProperty( modelsOfTheHydrogenAtom, 'checkboxStroke', {
default: 'white',
projector: 'black'
} ),

checkboxColorBackgroundProperty: new ProfileColorProperty( modelsOfTheHydrogenAtom, 'checkboxColorBackground', {
checkboxFillProperty: new ProfileColorProperty( modelsOfTheHydrogenAtom, 'checkboxFill', {
default: 'black',
projector: 'white'
} ),
Expand Down
4 changes: 2 additions & 2 deletions js/common/view/AbsorptionEmissionCheckbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export default class AbsorptionEmissionCheckbox extends Checkbox {

// CheckboxOptions
isDisposable: false,
checkboxColor: MOTHAColors.checkboxColorProperty,
checkboxColorBackground: MOTHAColors.checkboxColorBackgroundProperty,
checkboxColor: MOTHAColors.checkboxStrokeProperty,
checkboxColorBackground: MOTHAColors.checkboxFillProperty,

// Show this checkbox only for quantum models, see https://github.com/phetsims/models-of-the-hydrogen-atom/issues/63
visibleProperty: new DerivedProperty( [ isQuantumModelProperty, visibleProperty ],
Expand Down

0 comments on commit c82aa90

Please sign in to comment.