Skip to content

Conversation

maurerle
Copy link
Member

@maurerle maurerle commented Jun 20, 2025

Description

This readds the night-mode as before
860cdd9#diff-0eb547304658805aad788d320f10bf1f292797b5e6d745a3bf617584da017051L28

it does not automatically switch with: window.matchMedia("(prefers-color-scheme: dark)").

{
    "mapLayers": [
    {
      "name": "EsriWorldImagery",
      "url": "https://tiles.aachen.freifunk.net/EsriWorldImagery/{z}/{y}/{x}.png",
      "config": {
        "maxZoom": 19,
        "start": 30,
        "mode": "night",
        "attribution": "<a href=\"http://arcgis.com/\" target=\"_blank\">&copy; ArcGIS-Satellite</a> <a href=\"http://arcgis.com/about/\" target=\"_blank\">&copy; ArcGIS</a>"
      }
}

Motivation and Context

fixes #97

How Has This Been Tested?

Toggling between a theme with and without "mode": "night", set.

Screenshots/links:

image

The svg is not inverted, everything else works like before.

Checklist:

  • My code follows the code style of this project. (CI will test it anyway and also needs approval)
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.

@skorpy2009 skorpy2009 merged commit 486ebff into freifunk:main Jun 23, 2025
2 checks passed
@maurerle maurerle deleted the darkmode branch June 29, 2025 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Night mode gone since v12.4.0
2 participants