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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid diagrams don't play nice with dark interface themes #2215

Closed
moritzreiter opened this issue Jul 19, 2018 · 10 comments
Closed

Mermaid diagrams don't play nice with dark interface themes #2215

moritzreiter opened this issue Jul 19, 2018 · 10 comments

Comments

@moritzreiter
Copy link

moritzreiter commented Jul 19, 2018

Mermaid support introduced with #2173 is absolutely awesome! 馃憦馃憤

There's just a small problem with readability of texts in the diagrams when using one of the dark interface themes:

Current behavior

Some text in Mermaid diagrams in the preview panel is not readable when using one of the dark interface themes:

screen shot 2018-07-19 at 11 39 43

Expected behavior

All text in Mermaid diagrams should be readable when using one of the dark interface themes, as it is the case for light interface themes:

screen shot 2018-07-19 at 11 40 15

Steps to reproduce

  1. Set the interface theme to a dark theme (the screenshot shows Solarized Dark, but it's the same with the two other dark interface themes)
  2. Create a note with a Mermaid diagram
  3. Open the preview

Environment

  • Version : 0.11.8
  • OS Version and name : macOS High Sierra 10.13.6
@Rokt33r
Copy link
Member

Rokt33r commented Jul 19, 2018

Haha, yeah, we need to fix it. I assume a single line of css code, which is setting a background color, should be enough.

@Rokt33r Rokt33r added bug 馃悰 Issue concerns a bug. help wanted 馃啒 Pull request/issue requires extra help from the community. Check these out if you're new! labels Jul 19, 2018
@moritzreiter
Copy link
Author

moritzreiter commented Jul 19, 2018

I noticed that Mermaid itself seems to have different themes (note the default, dark, neutral and forest folders in the output below):

~/dev/Boostnote/node_modules/mermaid/src/themes> ls
class.scss     default        forest         git.scss       neutral
dark           flowchart.scss gantt.scss     mermaid.scss   sequence.scss

Maybe it's just a matter of somehow activating Mermaids dark theme if Boostnote runs with a dark interface theme?

I'd love to help more, but unfortunately I'm not at all familiar with Electron so I have no idea from what angle to tackle that task.

@yougotwill
Copy link
Member

@anothernode Fixed 馃憤 #2231

@IssueHuntBot
Copy link

@BoostIO funded this issue with $30. Visit this issue on Issuehunt

@yougotwill
Copy link
Member

Looks like it's my lucky day 馃槅

@kazup01
Copy link
Member

kazup01 commented Jul 31, 2018

yay馃帀

@kazup01
Copy link
Member

kazup01 commented Jul 31, 2018

@yougotwill Don't forget to apply for the rewarding 馃槃
https://issuehunt.io/repos/53266139/issues/2215

@kazup01 kazup01 added next release (v0.11.9) and removed bug 馃悰 Issue concerns a bug. help wanted 馃啒 Pull request/issue requires extra help from the community. Check these out if you're new! labels Jul 31, 2018
@IssueHuntBot
Copy link

@yougotwill has started working. Visit this issue on Issuehunt

@IssueHuntBot
Copy link

@yougotwill has submitted output. Visit this issue on Issuehunt

@IssueHuntBot
Copy link

@kazup01 has rewarded. Visit this issue on Issuehunt

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

6 participants