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 5922a28 commit 0c8226b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions js/common/view/EnvironmentRadioButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ class EnvironmentRadioButtonGroup extends RectangularRadioButtonGroup {
spacing: 8,
radioButtonOptions: {
cornerRadius: NaturalSelectionConstants.CORNER_RADIUS,
selectedStroke: NaturalSelectionColors.RADIO_BUTTON_SELECTED_STROKE,
deselectedStroke: NaturalSelectionColors.RADIO_BUTTON_DESELECTED_STROKE,
selectedLineWidth: 5,
deselectedLineWidth: 1.5,
xMargin: 0, // Set to 0 because we will create our own backgrounds, see below.
yMargin: 0 // Set to 0 because we will create our own backgrounds, see below.
yMargin: 0, // Set to 0 because we will create our own backgrounds, see below.
buttonAppearanceStrategyOptions: {
selectedStroke: NaturalSelectionColors.RADIO_BUTTON_SELECTED_STROKE,
deselectedStroke: NaturalSelectionColors.RADIO_BUTTON_DESELECTED_STROKE,
selectedLineWidth: 5,
deselectedLineWidth: 1.5
}
},

// phet-io
Expand Down

0 comments on commit 0c8226b

Please sign in to comment.