Skip to content

Commit

Permalink
made button appearance options into sub-options for better typing, see
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Jul 21, 2022
1 parent f23722a commit 1884792
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
10 changes: 6 additions & 4 deletions js/common/view/DisturbanceTypeRadioButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ class DisturbanceTypeRadioButtonGroup extends RectangularRadioButtonGroup {
} ], merge( {
orientation: 'vertical',
radioButtonOptions: {
baseColor: 'white',
xMargin: 1,
yMargin: 8,
selectedLineWidth: 2,
baseColor: 'white',
selectedStroke: 'blue',
deselectedContentOpacity: 0.4
buttonAppearanceStrategyOptions: {
selectedLineWidth: 2,
selectedStroke: 'blue',
deselectedContentOpacity: 0.4
}
}
}, options ) );
}
Expand Down
6 changes: 4 additions & 2 deletions js/common/view/SceneRadioButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ class SceneRadioButtonGroup extends RectangularRadioButtonGroup {
orientation: 'horizontal',
spacing: 15,
radioButtonOptions: {
selectedStroke: '#73bce1',
baseColor: 'white',
selectedLineWidth: 2
buttonAppearanceStrategyOptions: {
selectedStroke: '#73bce1',
selectedLineWidth: 2
}
}
} );
}
Expand Down
6 changes: 4 additions & 2 deletions js/diffraction/view/DiffractionScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ class DiffractionScreenView extends ScreenView {
const sceneRadioButtonGroup = new RectangularRadioButtonGroup( model.sceneProperty, sceneRadioButtonContent, {
radioButtonOptions: {
baseColor: 'white',
selectedStroke: '#419ac9',
selectedLineWidth: 2
buttonAppearanceStrategyOptions: {
selectedStroke: '#419ac9',
selectedLineWidth: 2
}
},
right: this.apertureNode.left - 20,
bottom: this.apertureNode.bottom
Expand Down

0 comments on commit 1884792

Please sign in to comment.