Default colour per calendar?

16 views
Skip to first unread message

Andrew

unread,
May 28, 2012, 10:01:34 AM5/28/12
to MyRoundcube - Plugins for Roundcube by Rosali
Good afternoon. I've just added the calendar plugin to Roundcube on
our site and it's cery impressive - coming from Lightning it's similar
enough to keep our users happy! I've got one question though; is it
possible to set default colours for the calendars? Each user has one
'personal' calendar and access to two 'public' calendars, but at the
moment they are all presented with grey backgrounds which makes them
hard to tell apart. If you've any advice it would be welcome. Please
keep up the great work!

Rosali

unread,
May 28, 2012, 11:25:54 PM5/28/12
to myrou...@googlegroups.com
Yes it is:
// event categories (can be modified by user)
$rcmail_config['categories'] = array(
   'Personal' => '19F7FF',
   'Work' => 'ff0000',
   'Family' => '00ff00',
   'Holidays' => 'ff6600',
);
// public calendar categories (can't be modified by user)
$rcmail_config['public_categories'] = array(
   'Public' => 'ff6600',
);
// associated CalDAVs (can't be modified by user)
/* you can use here the same placeholders as in
    'default_caldav_backend' */
$rcmail_config['public_caldavs'] = array(
   'Public' => array(
                 'user' => '%u',
                 'pass' => '%p',
                 'url' =>
'https://mycaldav.mydomain.tld/%u/events/public',
                 'auth' => 'basic',
                 'readonly' => false,
                 'extr' => false,
               ),
);
'Public' Caldav will be displayed in color #ff6600
 

Andrew

unread,
May 29, 2012, 4:11:19 AM5/29/12
to MyRoundcube - Plugins for Roundcube by Rosali
Fantastic - many thanks. I had foolishly not called the public
calendar 'Public' (I had given it the same name it has on the internal
network) so wasn't getting the benefit. I've used different colours
for the two public calendars using your config and both are working.

Thanks for a great plugin!
Reply all
Reply to author
Forward
0 new messages