Prism-Theme icon indicating copy to clipboard operation
Prism-Theme copied to clipboard

Local graph becomes black after changing mode (dark/light)

Open kudrmax opened this issue 1 year ago • 2 comments

Describe the bug

After changing theme mode from dark to light or from light to dark colors of any part of local graph becomes black. If go to Style Setting tab -> Prism Theme -> Appearance -> Graph Color Customisation -> Graph lines color and press Restore default button, then bug disappears.

To Reproduce

  1. Open local graph
  2. Change theme mode (light/dark)

Screenshots

Before: image

After: image image

Setup Information

  • Device Type: Mac
  • Operating System: MacOS Monterey
  • Prism version: 3.3.0
  • Color Schemes Used: Swan
  • Obsidian Version: 1.3.5
  • Obsidian Installer Version: 1.3.5

Additional context

I tested this bug in empty new vault without any other plugin accept Style Setting, and bug still exists.

kudrmax avatar Jul 27 '23 16:07 kudrmax

+1 on this

Setup Information

  • Device Type: laptop
  • Operating System: Windows 11
  • Prism version: 3.5.0
  • Color Schemes Used: pistachio/pine
  • Obsidian Version: 1.5.12
  • Obsidian Installer Version: 1.4.13

garbosz avatar Apr 18 '24 20:04 garbosz

Mine has the right colours at launch, then after a few seconds it switches to all black regardless of dark/light mode. (I usually have mode set to 'adapt to system', but it behaves the same at any mode setting.)

kazerniel avatar Apr 23 '24 09:04 kazerniel

I keep wondering about the colors of the local graph (or lack thereof), and then I remember this issue. Would love to see this fixed, as it's one of the few drawbacks of the Prism theme.

FeralFlora avatar May 22 '24 19:05 FeralFlora

I think I've finally identified the issue. Still have a few things to resolve but there will at least be a partial fix for this that prevents the colours from disappearing in the next update 🥳

damiankorcz avatar May 23 '24 03:05 damiankorcz

Hi all, The partial fix should now be available in Prism 3.5.3. The update requires Obsidian app version 1.6.0 or above.

The current problem is that if you switch between Light / Dark theme the graph colours will use the shades from Swan / Raven colour schemes since the partial fix was to make those the default colours which other colour schemes replace. Strangely if you change any setting in Style Settings it triggers a reload of some kind that will load the correct colour scheme colours. Not sure how I will resolve this yet so for now it's something we'll have to deal with. I can only assume these issues are due either how Obsidian loads graph colours, how Style Settings injects the CSS or a combination of both.

Since the issue outlined has been addressed I'll close this issue but will continue to look for a solution to the above.

damiankorcz avatar May 26 '24 19:05 damiankorcz