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 f49c153 commit 13f5170
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions js/common/VectorAdditionColors.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ const VectorAdditionColors = {

RADIO_BUTTON_GROUP_COLORS: {
baseColor: Color.WHITE,
selectedStroke: 'rgb( 65, 154, 201 )', // blue
deselectedStroke: 'rgb( 50, 50, 50 )'
buttonAppearanceStrategyOptions: {
selectedStroke: 'rgb( 65, 154, 201 )', // blue
deselectedStroke: 'rgb( 50, 50, 50 )'
}
},

//----------------------------------------------------------------------------------------
Expand Down
8 changes: 5 additions & 3 deletions js/common/VectorAdditionConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ const VectorAdditionConstants = {
cornerRadius: 8,
xMargin: 8,
yMargin: 8,
selectedLineWidth: 1.5,
deselectedLineWidth: 1,
deselectedButtonOpacity: 0.35
buttonAppearanceStrategyOptions: {
selectedLineWidth: 1.5,
deselectedLineWidth: 1,
deselectedButtonOpacity: 0.35
}
}, VectorAdditionColors.RADIO_BUTTON_GROUP_COLORS )
},

Expand Down

0 comments on commit 13f5170

Please sign in to comment.