Author Topic: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0  (Read 14431 times)

Offline caaguado

  • Newbie
  • *
  • Posts: 4
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!

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
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…

Offline caaguado

  • Newbie
  • *
  • Posts: 4
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  :)

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
You would need to create a custom skin to change that behaviour.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline caaguado

  • Newbie
  • *
  • Posts: 4
Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
« Reply #4 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  :)

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
« Reply #5 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
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline Rainz

  • Newbie
  • *
  • Posts: 7
Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
« Reply #6 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?  ???
« Last Edit: November 06, 2021, 08:32:20 AM by Rainz »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
« Reply #7 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
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline caaguado

  • Newbie
  • *
  • Posts: 4
Re: How to default the Elastic theme to its "Light" variant in Roundcube 1.5.0
« Reply #8 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  ;-)