For example, if status=open, meeting=red...if status=closed, meeting=green, etc. etc.
I haven't done this before but i would start checking /modules/Calendar/CalendarDisplay.php path. There are some colour definitions already defined.
* colors of items on calendar
public $activity_colors = array(
'Meetings' => array(
'border' => '#1C5FBD',
'body' => '#D2E5FC',
'Calls' => array(
'border' => '#DE4040',
'body' => '#FCDCDC',
'Tasks' => array(
'border' => '#015900',
'body' => '#B1F5AE',
Those definitons are used in /modules/Calendar/Cal.js like;
el.style.backgroundColor = CAL.activity_colors[item.module_name]['body'];
el.style.borderColor = CAL.activity_colors[item.module_name]['border'];
Like i mentioned early beginning of my post, I didn't test this but you might need to change some views in order to get these changes from custom folder. Because maybe these files are not being read from custom folder. So if you duplicate them to custom you might no see that it is effecting.
In order to read these files(that you are going to customise) you need to find the view that being included and move them to custom folder and there change the path to your custom folder.
Long story in a short, it isn't easy to do such customisations. Give a try, if you fail at some point and let community know. We can try our best!
Hope this helps.
Developer Support Engineer
Thanks Tevfik. Let me give you the specific example and you can tell me if its possible. The client has a few secretaries that schedule on-site meetings for outside sales reps in 5 different regions. They would like the 5 different regions to have 5 different colors associated to them on the calendar. So, if they set a meeting, they want to pick the time, pick the region that the meeting is in and have that show up on the calendar in a specific color based on the region. That way they can see (at a quick glance) which sales reps are going where.
Is this possible given your example above? Tevfik Tümer
If i didn't get you wrong, you would like to have different colours on event in Calendar based on region. Since we have it based on Modules. You can make it possible based on Region as well.
So, this sounds to me possible. But like i mentioned in my previous post, you might need to change multiple file and customisations can be tricky or maybe really easy . Just it needs to try and see how hard to implement.
Here are previous threads that might help: Change calendar colors Theme style css for a BWC module
Also, this article might still be applicable to calendars today: https://developer.sugarcrm.com/2012/07/31/colorizing-the-calendar/
Retrieving data ...