[FEAT] Dark theme + Other enhancements #572
Conversation
Default: light
👷 Deploy request for geoguess2 accepted.
|
Codecov ReportBase: 51.47% // Head: 51.28% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #572 +/- ##
==========================================
- Coverage 51.47% 51.28% -0.20%
==========================================
Files 52 52
Lines 744 741 -3
Branches 206 205 -1
==========================================
- Hits 383 380 -3
Misses 329 329
Partials 32 32
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
BilelJegham
left a comment
There was a problem hiding this comment.
Hello 👋 ,
I really appreciate your contribution, it's been a while user ask for dark theme.
All tested with cypress are OK ✔️ on my side.
I make some suggestions and ask some questions.
I'm waiting for your feedback 😉
I've removed VUE_APP_DEFAULT_THEME env in place of checking the browser's current theme like suggested, and fixed other problems.
BilelJegham
left a comment
There was a problem hiding this comment.
It's all good for me.
Big thanks for this PR @Troplo
|
@allcontributors please add @Troplo for code |
|
I've put up a pull request to add @Troplo! 🎉 |
|
SonarCloud Quality Gate failed.
|








Types of Changes
Description
I've added a dark theme for the UI and the Google map using the native Vuetify dark mode property and Vuetify's CSS variable exposure, instead of statically setting hex codes in the CSS like
background: #7fad94;,background: var(--v-footer-base);is used instead, and these properties can be adjusted in Vuetify's plugin config.Additionally, I've fixed/changed a few things that have been bothering me throughout playing GeoGuess:
How Has This Been Tested?
The largest code changes would be the adoption of Vuetify's CSS variables in place of hexes.
I've deployed all my changes to my instance of GeoGuess and have been playing it for around a month with multiple players with most of the changes listed and have experienced no issues related to the changes.
Linting, and Jest passes for me, however Cypress sometimes fails with
AssertionError: Timed out retrying after 4000ms: Expected to find element: "map", but never found it., I'm not sure if this was a problem before, a configuration mistake with GeoGuess itself locally, or if I changed something code wise to cause this (I couldn't find anything that would lead to this error, the map and game does function as expected in a web browser)Screenshots (if appropriate):