forked from OpenRailwayMap/OpenRailwayMap-CartoCSS
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #125 Add support for Dark mode. By default the *system* mode is used, which auto-selects the light or dark mode based on system preferences. The user can select light or dark mode explicitly in the settings. Uses Bootstrap's dark mode support. https://getbootstrap.com/docs/5.3/customize/color-modes/#enable-dark-mode Requires patching some icons / colors in the MapLibre GL JS UI. Hardcoded colors have been put into the `colors` map and are now theme-dependenent. The style generation outputs a JSON style file per theme, and the UI selects the style based on the user's preferences. The resulting contrast between text and the background is a bit lower than using light mode. The colors can be tweaked more in separate PRs if needed.
- Loading branch information
Showing
6 changed files
with
624 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.