Save Night Mode settings via browser's IndexedDB or localStoragesteemCreated with Sketch.

in #utopian-io7 years ago (edited)

Components

Hi, addition of Dark Mode to DTube is a must and I'm glad that it's there but currently there's one thing that bugs me. As soon as you reload the page it will forget your Dark Mode settings and You'll need to set it from scratch.

Proposal

Use IndexedDB (async) or localStorage (sync) to save user settings regarding Dark Mode when changing and as soon as app starts again check IdB or localStorage if it's set. If it is, programmatically
set Dark Mode to true globally, else do nothing.

Mockups / Examples

Refreshed page:
image.png

Benefits

User won't be blinded by light version of the page when visiting it
User Experience will improve (at average 2 clicks less every time he/she visits the website - Settings -> Dark Mode)
It will match competitiors (YouTube honestly) and Steemit.com behaviour



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Your contribution cannot be approved because it does not follow the Utopian Rules. Suggestions like night mode feature, FAQ, about us are seen as trivial suggestion and hence cannot be approved. Thanks

You can contact us on Discord.
[utopian-moderator]

With all the respect due, I think you misunderstood my post. DTube already has Dark Mode, I'm writing about a User Experience suggestion it and browser cache to further optimize the experience. I have read Suggestion Rules before writing this post and I think it didn't break the rules.

It proposes a minor feature, gives explanation and resolves the issue by giving proposed logic. I may be in wrong here after all, thanks for checking.