Skip to content

dark theme support #116

@Inuart

Description

@Inuart

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing requests and didn't find any that were similar
  • I have considered creating a pull request instead and want to proceed

Clear and concise description of the problem

I wanted to publish a Page with some Graphviz diagrams, but I can't see them because while I have Anytype configured to us the dark theme, the published version is exported using the light theme, resulting in my diagrams to be drawn white on white.

If I change the diagram's lines to be black, then I can see them in the web page but I can't see them in the app.

Suggested solution

I guess a solution would be to default graphviz's fontcolor to the browser's CSS color, since it can be adapted to follow the browser's theme preferences.

The export should be able to take prefers-color-scheme into account.

Alternative

I tried to use a black diagram background color, but then my "automatic dark theme" browser setting just changes the background to white and the diagram lines and text are kept white, so still invisible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions