Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark Mode cookie not saved past current session. #8237

Closed
Github-Citizen opened this issue Oct 19, 2021 · 3 comments
Closed

Dark Mode cookie not saved past current session. #8237

Github-Citizen opened this issue Oct 19, 2021 · 3 comments

Comments

@Github-Citizen
Copy link
Contributor

Dark mode does not retain the cookie past the current session. If you close the browser and reopen roundcube it is reset back to light mode.

Tested in Firefox and Edge.

@alecpl alecpl added this to the 1.5.1 milestone Oct 19, 2021
@Github-Citizen
Copy link
Contributor Author

If i can add a feature request to this if it isn't too difficult...
How about a dark/light mode button on the login screen?

@Github-Citizen
Copy link
Contributor Author

If anyone wants a quick fix to this until its available in a future update.
In file ./skins/elastic/ui.min.js

# Find
rcmail.set_cookie("colorMode",b)

# Change To
rcmail.set_cookie("colorMode",b,new Date(Date.now()+365*24*60*60*1000))

@alecpl
Copy link
Member

alecpl commented Oct 22, 2021

Fixed.

@alecpl alecpl closed this as completed Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants