javalent / obsidian-leaflet

Adds interactive maps to Obsidian.md using Leaflet.js
468 stars 26 forks source link

Dark tiles are used in light mode when color scheme is set to "Adapt to system" #440

Closed kepano closed 3 months ago

kepano commented 3 months ago

Check for existing bug reports before submitting.

Expected Behavior

When Adapt to system is on use light tiles when color scheme is light

Current behaviour

When Obsidian base color scheme is set to Adapt to system in Appearance settings, Leaflet always uses the dark tiles even in light mode.

Reproduction

  1. Set Obsidian color scheme to "Adapt to system"
  2. Set system color scheme to light
  3. Open a map with tiles — they will appear dark

Which Operating Systems are you using?

Obsidian Version Check

1.5.11

Plugin Version

6.0.4

Confirmation

Possible solution

No response

kepano commented 3 months ago

Thanks for the super quick fix!