Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark Mode #31

Open
darksidelemm opened this issue Apr 17, 2021 · 1 comment
Open

Dark Mode #31

darksidelemm opened this issue Apr 17, 2021 · 1 comment

Comments

@darksidelemm
Copy link
Member

Some kind of Dark Mode for chasemapper would be useful. Something that can be used on a tablet, in a car, at night - without blinding the operator.

Maybe @LukePrior has some ideas on this one?

Main things to do would be:

  • Find a map tile-set that is usable in a dark environment, and that has enough contrast to be useful. Dark Matter isn't really good enough - the contrast is not really good. Something like the OSMAnd 'dark' maps (see here https://osmand.net/features/start and here https://osmand.net/images/features/StyleOsmAnd2.jpg ) would be excellent.
  • Make a second set of icons that provide enough contrast on the selected map.
  • Figure out all the CSS changes required to invert the colours (mostly) and make the page look good.
@LukePrior
Copy link
Member

The Stadia.AlidadeSmoothDark map from Stadia Maps which requires a free API key has been added.

In terms of icons, I just changed darker components to lighter shades and kept the rest the same. The way I handled logic was by first checking if the user had set a preferred light/dark mode and if that was unavailable it would default to checking the browser/device preference. To actually change the CSS I mainly used jQuery as seen here and also some CSS rules here. I remember having to use both of these to get it working in all cases.

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

No branches or pull requests

2 participants