Skip to content

Commit

Permalink
improve default modebar color
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerg committed Oct 5, 2018
1 parent ff3f9f6 commit db9edd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plots/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -1336,8 +1336,9 @@ plots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {

coerce('modebar.orientation');
coerce('modebar.bgcolor', Color.addOpacity(layoutOut.paper_bgcolor, 0.5));
coerce('modebar.color', Color.contrast(Color.rgb(layoutOut.modebar.bgcolor), 30, 30));
coerce('modebar.activecolor', Color.contrast(Color.rgb(layoutOut.modebar.bgcolor)));
var modebarDefaultColor = Color.contrast(Color.rgb(layoutOut.modebar.bgcolor));
coerce('modebar.color', Color.addOpacity(modebarDefaultColor, 0.3));
coerce('modebar.activecolor', Color.addOpacity(modebarDefaultColor, 0.7));

Registry.getComponentMethod(
'calendars',
Expand Down

0 comments on commit db9edd1

Please sign in to comment.