atoponce / webpassgen

Simple web-based password generator
https://atoponce.github.io/webpassgen/
GNU Affero General Public License v3.0
141 stars 23 forks source link

Dark Theme Fix #13

Closed minig0d closed 3 years ago

minig0d commented 3 years ago

Based on Issue #12, reworked the dark theme activation based on a toggled class on the body tag. Since there is no manipulation of the stylesheet, no CORS violations are blocked. Also added a default of honoring the user's OS preference, for the fun of it.

Tested on current versions of Firefox and Chrome on Windows without issue. (Changes do not work on ie, but neither did previous version or does the main project so did not add backwards compatibility).

atoponce commented 3 years ago

Thanks for the PR! Everything looks great I also added the code to the bookmarklets.html and dicekey.html in this merge.