Skip to content

SVG output needs to be compatible with "dark mode", e.g. in docs #1150

@hyanwong

Description

@hyanwong

With the ability to switch from dark to light mode, we need the SVGs to work both ways too.

The shaded background in a tree seq viz is easy: we can just make it a mid grey with a suitable alpha value.

The difficulty is going to be the switching the lines from black to white. I guess this can be done using css somehow. At the moment it's hard-coded into the CSS embedded in the SVG. Perhaps we could override that somehow, but only for dark mode.

Edit: looks like currentColor might do it: https://hiddedevries.nl/en/blog/2018-12-24-making-single-color-svg-icons-work-in-dark-mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    Python APIIssue is about the Python APIVisualisationThis issue addresses visualisationenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions