<p></p>
<blockquote>
<p dir="auto">I've updated the code to account for the "Preferred Website Color Scheme." Theme settings should now be working correctly.</p>
</blockquote>
<p dir="auto">It's not going to work correctly because our <em>Auto</em> option follows <code class="notranslate">prefers-color-scheme</code> which can change any time. If it does, you'll get for example this:</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/77ad7234-a4e0-4441-a321-6f723f5a826a">image.png (view on web)</a></p>
<p dir="auto">Looks like cal-heatmap doesn't have a proper auto scheme <a href="https://cal-heatmap.com/docs/options/theme" rel="nofollow">"as not all websites support dark/light mode"</a>.</p>
<p dir="auto">You'd have to then setup a listener like <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4777/commits/e35141b2d1c1733d9a15a01c08b796e4edda6b4e#diff-4fe14e869cf17b068e1bea009a55b094fed13f0cad85337cf4769f32b40a01b5R11-R13">this</a> but without using Leaflet of course and redraw the heatmap.</p>
<p dir="auto">Same is true for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2752684525" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5426" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5426/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5426">#5426</a> by the way.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5402#issuecomment-2564655317">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMB53F7GTSIHTXUTLT2H6ZDPAVCNFSM6AAAAABTWNRZO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGY2TKMZRG4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKDDKDOVOKQTDH77LL2H6ZDPA5CNFSM6AAAAABTWNRZO6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUY3WENK.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5402/c2564655317</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5402#issuecomment-2564655317",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5402#issuecomment-2564655317",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>