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

modeBar styling #3068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Oct 5, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1b7c126
add config option modeBarStyle, update logo
antoinerg Oct 2, 2018
947eaf2
fix margins and alignments of modeBar buttons
antoinerg Oct 2, 2018
212612b
specify default style in modebar tests
antoinerg Oct 2, 2018
3795223
increase sizeo of plot.ly logo
antoinerg Oct 2, 2018
e870e34
fix rendering of logo in IE
antoinerg Oct 2, 2018
a4d3948
fix no-multiple-empty-lines
antoinerg Oct 2, 2018
61d1c7b
slurp entire SVG, uses DOMParser instead of innerHTML
antoinerg Oct 2, 2018
1d4ac7e
add build artefact for icons
antoinerg Oct 2, 2018
ff9d801
move plot.ly logo on top for vertical modebar
antoinerg Oct 3, 2018
397a6de
move modeBarStyle from config to layout options
antoinerg Oct 3, 2018
baeb1bc
update modebar tests with modeBarStyle in layout instead of config
antoinerg Oct 3, 2018
254f158
set proper editType on layout attribute modeBar
antoinerg Oct 3, 2018
f9e8777
modeBarStyle managed in css, new layout attribute activeIconColor
antoinerg Oct 3, 2018
fc47c72
remove 🐫 in modebar layout attributes
antoinerg Oct 3, 2018
0046f12
more robust test for modeBar.destroy
antoinerg Oct 4, 2018
b7c2355
place tooltips on the left of vertical modebars
antoinerg Oct 4, 2018
31d6fb2
in modebar plotly logo has same position in both orientations (v|h)
antoinerg Oct 4, 2018
97f25e2
fix to change modebar style on relayout
antoinerg Oct 4, 2018
dc7877b
trim whitespace in plotly logo's svg
antoinerg Oct 4, 2018
f5cc0e9
🔒 down modebar styling option
antoinerg Oct 4, 2018
452f9bc
by default modebar colors contrasts with paper_bgcolor
antoinerg Oct 5, 2018
266d63b
fix default modebar colors
antoinerg Oct 5, 2018
ff3f9f6
improve default modebar colors
antoinerg Oct 5, 2018
db9edd1
improve default modebar color
antoinerg Oct 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
by default modebar colors contrasts with paper_bgcolor
  • Loading branch information
antoinerg committed Oct 5, 2018
commit 452f9bc6ffe78b51f2b393182d3cbffafd16a13e
3 changes: 0 additions & 3 deletions 3 src/plots/layout_attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,21 +237,18 @@ module.exports = {
bgcolor: {
valType: 'color',
role: 'style',
dflt: 'rgba(255, 255, 255, 0.7)',
editType: 'modebar',
description: 'Sets the background color of the modebar.'
},
color: {
valType: 'color',
role: 'style',
dflt: 'rgba(0, 31, 95, 0.3)',
editType: 'modebar',
description: 'Sets the color of the icons in the modebar.'
},
activecolor: {
valType: 'color',
role: 'style',
dflt: 'rgba(0, 22, 72, 0.5)',
editType: 'modebar',
description: 'Sets the color of the active or hovered on icons in the modebar.'
},
Expand Down
6 changes: 3 additions & 3 deletions 6 src/plots/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -1335,9 +1335,9 @@ plots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {
coerce('datarevision');

coerce('modebar.orientation');
coerce('modebar.bgcolor');
coerce('modebar.color');
coerce('modebar.activecolor');
coerce('modebar.bgcolor', Color.addOpacity(layoutOut.paper_bgcolor, 0.5));
coerce('modebar.color', Color.contrast(layoutOut.modebar.bgcolor, 30, 30));
coerce('modebar.activecolor', Color.contrast(layoutOut.modebar.bgcolor));

Registry.getComponentMethod(
'calendars',
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.