Skip to content
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

Generated html file with dark plot should also have dark background #151

Open
qarmin opened this issue Jul 10, 2023 · 1 comment
Open

Generated html file with dark plot should also have dark background #151

qarmin opened this issue Jul 10, 2023 · 1 comment

Comments

@qarmin
Copy link

qarmin commented Jul 10, 2023

Currently using

layout.template(&*PLOTLY_DARK);

will change color of plot, but not rest of the page.
As workaround i manually background color

    let mut html = plot.to_html();
    if !settings.white_plot_mode {
        html = html.replace("<head>", "<head><style>body {background-color: #111111;color: white;}</style>");
    }
@mfreeborn
Copy link
Contributor

I'll have to check what the exact behaviour is with the Python/JavaScript implementations, as I tend to base all decisions like this one on what the canonical libraries do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants