rust-lang / chalk

An implementation and definition of the Rust trait system using a PROLOG-like logic solver
https://rust-lang.github.io/chalk/book/
Other
1.81k stars 179 forks source link

Detect dark theme for mermaid diagrams #770

Closed detrumi closed 2 years ago

detrumi commented 2 years ago

Fixes #761 for the case where you've set your theme beforehand. Changing the theme doesn't change the diagrams until you refresh, I tried adding an event listener to the theme switch but mermaid.initialize() doesn't update the diagrams when called twice.

jackh726 commented 2 years ago

@bors r+

bors commented 2 years ago

:pushpin: Commit 6962efbc1279e5b14a3fcdbd496303d48f4d0f2c has been approved by jackh726

bors commented 2 years ago

:hourglass: Testing commit 6962efbc1279e5b14a3fcdbd496303d48f4d0f2c with merge 48b1f1c62423db8108763647b53651d3f044b66b...

bors commented 2 years ago

:sunny: Test successful - checks-actions Approved by: jackh726 Pushing 48b1f1c62423db8108763647b53651d3f044b66b to master...