Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit db9edd1

Browse filesBrowse files
committed
improve default modebar color
1 parent ff3f9f6 commit db9edd1
Copy full SHA for db9edd1

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎src/plots/plots.js

Copy file name to clipboardExpand all lines: src/plots/plots.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,8 +1336,9 @@ plots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {
13361336

13371337
coerce('modebar.orientation');
13381338
coerce('modebar.bgcolor', Color.addOpacity(layoutOut.paper_bgcolor, 0.5));
1339-
coerce('modebar.color', Color.contrast(Color.rgb(layoutOut.modebar.bgcolor), 30, 30));
1340-
coerce('modebar.activecolor', Color.contrast(Color.rgb(layoutOut.modebar.bgcolor)));
1339+
var modebarDefaultColor = Color.contrast(Color.rgb(layoutOut.modebar.bgcolor));
1340+
coerce('modebar.color', Color.addOpacity(modebarDefaultColor, 0.3));
1341+
coerce('modebar.activecolor', Color.addOpacity(modebarDefaultColor, 0.7));
13411342

13421343
Registry.getComponentMethod(
13431344
'calendars',

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.