Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: booshlinux on January 02, 2025, 03:05:53 PM

Title: Elastic skin defaults to 'dark' mode
Post by: booshlinux on January 02, 2025, 03:05:53 PM
Hello,

I'm using Roundcube 1.5.9 LTS, and I noticed that the Elastic skin defaults to the dark mode on initial login. I haven't found anywhere to change this to default to 'light', so I wrote a plugin so set a cookie "colorMode => 'light'" if it does not exist. This seems to work just fine, however I'm curious if I'm missing something else. Is this option configurable on this LTS version? If so, how do I configure it?

Thanks.
Title: Re: Elastic skin defaults to 'dark' mode
Post by: SKaero on January 02, 2025, 06:26:37 PM
The default color mode is set by the browsers "prefers-color-scheme" value. The "prefers-color-scheme" can typically be set in the browser or in OS. The idea is if the user has selected that they want dark mode on the computer or browser Roundcube will respect that and show that version.
Title: Re: Elastic skin defaults to 'dark' mode
Post by: booshlinux on January 03, 2025, 01:16:34 PM
SKaero,

Thanks for the response. This makes much more sense now.