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 c6d0191 commit 39c3a8b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions js/inelastic/view/PresetRadioButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,17 @@ class PresetRadioButtonGroup extends RectangularRadioButtonGroup {
options = merge( {
orientation: 'horizontal',
radioButtonOptions: {
deselectedLineWidth: 1,
selectedLineWidth: 1.5,
baseColor: CollisionLabColors.RADIO_BUTTON_BASE_COLOR,
cornerRadius: 8,
deselectedButtonOpacity: 0.35,
xMargin: 12,
yMargin: 4,
baseColor: CollisionLabColors.RADIO_BUTTON_BASE_COLOR,
selectedStroke: CollisionLabColors.RADIO_BUTTON_SELECTED_STROKE,
deselectedStroke: CollisionLabColors.RADIO_BUTTON_DESELECTED_STROKE
buttonAppearanceStrategyOptions: {
deselectedLineWidth: 1,
selectedLineWidth: 1.5,
deselectedButtonOpacity: 0.35,
selectedStroke: CollisionLabColors.RADIO_BUTTON_SELECTED_STROKE,
deselectedStroke: CollisionLabColors.RADIO_BUTTON_DESELECTED_STROKE
}
}
}, options );

Expand Down

0 comments on commit 39c3a8b

Please sign in to comment.