pandeyganesha / digit-dare

https://pandeyganesha.github.io/digit-dare/
MIT License
3 stars 6 forks source link

Add Change Theme option #8

Closed ngothuythanhtam closed 1 month ago

ngothuythanhtam commented 1 month ago

Hi, I’ve implemented the theme change option, which allows users to easily switch between light and dark modes. The transition effect has been designed to be smooth, providing a pleasant user experience. And the toggle button can easily move on the menu. If there are any specific areas you'd like me to improve or further enhance, please let me know. I'm open to suggestions and ready to make any necessary adjustments.

pandeyganesha commented 1 month ago

@ngothuythanhtam

It is really good !

Suggestions :

Please make these changes and push the changes and let me know. I'd review and merge. Feel free to ask if anything is not clear.

Thanks

ngothuythanhtam commented 1 month ago

@pandeyganesha Okay got it, I’ll create separate SVG files and implement a single tap button that switches between sun and moon icons. The button will have a simple circular design without fancy outlines and will change themes with the ripple effect at 0.600 seconds.

I’ll push these changes soon for your review.

ngothuythanhtam commented 1 month ago

@pandeyganesha I’ve updated the theme change animation based on our discussion. The color change now occurs after the ripple effect, creating a smoother transition. Could you please review the changes? I’d appreciate your feedback!

ngothuythanhtam commented 1 month ago

I apologize for attaching the wrong CSS file in my previous version. Let me correct it and attached the right file now.

ngothuythanhtam commented 1 month ago

I have updated, please review and let me know your thoughts

pandeyganesha commented 1 month ago

Thanks

Still two issues i can see here.

  1. In white theme the color of text has become black, but the color of boxes are still black, so it doesn't look. So keep the text color white even in light theme.
  2. I can still see the theme color changing instantly when the button is tapped and then a ripple effect after that. Currently it is like, first the theme color changes and then the ripple propagates, what we need is that the color changes which the ripple. As the diameter of the ripple increases, the color changes for that much ripple circle only. To see it better, set the ripple speed to 10s for debugging purposes only, and you will see that the color changes first and then the ripple is slowly increasing. That's what i am talking about

Please fix

ngothuythanhtam commented 1 month ago

Hi @pandeyganesha , I have fixed the problem that you required. Please check it out and let me know your consider. Thanks!

pandeyganesha commented 1 month ago

@ngothuythanhtam Great work you have done. You have done what you were asked for. And Now I can accept this PR. But I still can see one more improvement. You can go ahead and pick them too if you want.

Suggestions:

These are all the suggestions you can try to fix if you want. If you don't want then I can finally merge this PR as this is good enough to get merged. Let me know what you think. Thanks.

ngothuythanhtam commented 1 month ago

Hi @pandeyganesha I believe the current state is good enough. Please feel free to go ahead and merge the PR. Thanks again!

pandeyganesha commented 1 month ago

@ngothuythanhtam Thanks for contributing ! Merging the Branch.