haydenull / logseq-plugin-excalidraw

MIT License
75 stars 1 forks source link

Issues when using dark mode with LogSeq #30

Open jorgedfbranco opened 6 months ago

jorgedfbranco commented 6 months ago

Hello!

First of all, thank you for the absolute great job with this Excalidraw plugin! It's definitely a major improvement when compared with the default Excalidraw support LogSeq is bundled with!

I have been using dark mode and noticed that the Excalidraw plugin doesn't seem to play very well with it:

  1. In this first case, the generated diagram has a white background, which is not really what one would expect as result when drawing in edit-mode: darkmode

  2. In this second case, I wanted to change the background color manually. And at first it seemed like things went well, but then something weird happens every time I switch back and forth different pages on LogSeq, as it seems that when coming back to this page the colors are all off until I click "refresh": darkmode2_2

I briefly switched to light-mode to see if any of these issues popped up, but as expected everything works perfectly in light-mode 🥇.

In my all my naiveté, I took a peek at the code yesterday to see if I could apply the changes myself, but as I soon came to realize, as I'm a backend dev all this HTML / CSS / TS / React is just too much for me at this point 😄.

I'm using Excalidrawv 1.5.1, btw.