Roundcube Community Forum

Themes & Styling => Theme Releases => Topic started by: caaguado on October 25, 2021, 04:18:59 PM

Title: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
Post by: caaguado on October 25, 2021, 04:18:59 PM
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!
Title: Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
Post by: JohnDoh on October 27, 2021, 10:21:31 AM
Is your desktop or browser environment set to dark mode? Roundcube will default to light mode unless your browser prefers dark mode.
Title: Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
Post by: caaguado on October 29, 2021, 02:14:40 PM
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  :)
Title: Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
Post by: JohnDoh on October 30, 2021, 05:51:10 AM
You would need to create a custom skin to change that behaviour.
Title: Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
Post by: caaguado on November 03, 2021, 03:51:06 PM
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  :)
Title: Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
Post by: 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
Title: Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
Post by: Rainz on November 06, 2021, 08:18:47 AM
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?  ???
Title: Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
Post by: JohnDoh on November 06, 2021, 11:04:51 AM
@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
Title: Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
Post by: caaguado on November 27, 2021, 01:37:21 PM
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  ;-)