-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
different source colours or prefixes #52
Comments
There seems to be an in official attribute for color:
This seems to be used by nextcloud |
Pardon my ignorance but how would you add that? |
Each event goes through Javascript. That could be the place. Also, the attribute might need to be copied over from the Python event object into the JSON data that is sent to the website by flask. |
@niccokunzmann : I have now added the above attribute but still no change in the calendar colors... Am I missing something? CALSCALE:GREGORIAN |
+1 for this. I'm working with Outlook calendars, and I don't think I can add colours to the calendars themselves, but I'd like to be able to distinguish between different calendars that have been imported into the view. |
Going off the DHTMLX docs, and having had a quick nose through the codebase, am I right in thinking that adding the following line or similar to the return statement at /convert_to_dhtmlx.py:42 would at least get the background colour changing for coloured events? "color": calendar_event.get("X-APPLE-CALENDAR-COLOR", ""), Additionally, the below line might be needed: "textColor": "#ffffff", assuming that the calendar program has provided colours with high enough contrast from white. |
I am happy to receive a pull request for that. It could be simple and I guess If it creates unexpected behavior, we will hear back.
Am 24. März 2022 16:37:42 GMT+00:00 schrieb Barnaby Collins ***@***.***>:
…Going off the [DHTMLX docs](https://docs.dhtmlx.com/scheduler/custom_events_color.html), am I right in thinking that adding the following line or similar to the return statement [/convert_to_dhtmlx.py](convert_to_dhtmlx.py):42:
```python
"color": calendar_event.get("X-APPLE-CALENDAR-COLOR", ""),
```
would at least get the background colour changing for coloured events?
Additionally, the below line might be needed:
```python
"textColor": "#ffffff",
```
assuming that the calendar program has provided colours with high enough contrast from white.
--
Reply to this email directly or view it on GitHub:
#52 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Add event colour support (see #52)
As linked in the Pull Requests above, now you can change the color of the calendars. |
Hey,
When using multiple calendar sources, it might be a nice idea to specify keep them distinguishable, e.g. by using different (background / highlight) colours or prefixes for each of them.
We're using [Polar.sh](https://polar.sh/niccokunzmann) so you can upvote and help fund this issue. We receive the funding once the issue is completed & confirmed by you. Thank you in advance for helping prioritize & fund our work.
The text was updated successfully, but these errors were encountered: