Skip to content

Darkmode#172

Merged
skorpy2009 merged 1 commit intofreifunk:mainfrom
maurerle:darkmode
Jun 23, 2025
Merged

Darkmode#172
skorpy2009 merged 1 commit intofreifunk:mainfrom
maurerle:darkmode

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
@GoliathLabs
Copy link
Contributor

Why don't we switch to dark mode automatically? Most user (e.g. me) didn't know of this feature yet.

@maurerle
Copy link
Member Author

Because it is not implemented :D i tried to this last year but somehow could not figure it out. So if you want to try a PR, go ahead :)

But yes, would be good in general!

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

3 participants