Roundcube Community Forum

 

How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0

Started by caaguado, October 25, 2021, 04:18:59 PM

Previous topic - Next topic

caaguado

Hi there,

Thanks a lot for the re-work on the Elastic theme to bring to life its "Dark" variant in Roundcube 1.5.0.

However, I've been trying make it default to its "Light" variant, unsuccessfully.

Is there a way to configure it to "Light" by default (although users will obviously able later to switch it to the "Dark" variant?

Thanks!

JohnDoh

Is your desktop or browser environment set to dark mode? Roundcube will default to light mode unless your browser prefers dark mode.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

caaguado

Hi John, actually... yes, it is set to dark mode. Yet, I'd like, if possible, to still be able to default Elastic to "Light", without having to depend on the user's computer.

Is there any way of doing it?

Thank you  :)

JohnDoh

Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

caaguado

Thanks John, no problem with that, and at the same time it'd be great if I could get some orientation about what and how I'd need to tweak. Any ideas/advice? Thanks  :)

JohnDoh

Have a look at the color_mode_init() function in the Elastic skin's ui.js file
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Rainz

Frankly I have a similar issue.

Running Roundcube towards my webhost to check mail when I am not able to invoke my default local mailprogram.

I am a "user", thus I have zero access (that I know of) to my webhosts Roundcube configuration and this is driving me nuts because they don't seem to be able to help me either (i will link this thread to them though).
My desktop and browser is in dark mode, all my desktops are in dark mode, I set the Roundcube Elastic Theme to Light because the Dark is just not very appealing to me, and it endures the session, but whenever getting to it on another browser, another computer or just restarting the browser I am back at Elastic Dark mode.  >:(

Please code a persistent setting or I will just have to go back to Squirrelmail or something else... how can you not have it?  ???

JohnDoh

@Rainz I'm not sure what this has to do with the original thread but hey the issue with persistence will be fixed in 1.5.1 see https://github.com/roundcube/roundcubemail/issues/8237
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

caaguado

Quote from: JohnDoh on November 05, 2021, 06:47:34 AM
Have a look at the color_mode_init() function in the Elastic skin's ui.js file

Thanks a lot John, it was easy to spot  ;-)