Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e4090ce authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

color fix

parent d4f5534b
Loading
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -4,17 +4,20 @@ Subject: [PATCH] Create a task calendar on first login

This patch creates a default task VTODO calender on first login

--- ./apps/dav/lib/HookManager.php	2023-06-16 19:01:35.894535512 +0530
+++ ./apps/dav/lib/HookManager-new.php	2023-06-16 19:07:09.374531373 +0530
@@ -179,6 +179,11 @@
 						'{http://apple.com/ns/ical/}calendar-color' => $this->themingDefaults->getColorPrimary(),
--- apps/dav/lib/HookManager.php	2023-09-27 15:22:49
+++ apps/dav/lib/HookManager-new.php	2023-09-27 15:24:15
@@ -176,8 +176,13 @@
 				try {
 					$this->calDav->createCalendar($principal, CalDavBackend::PERSONAL_CALENDAR_URI, [
 						'{DAV:}displayname' => CalDavBackend::PERSONAL_CALENDAR_NAME,
-						'{http://apple.com/ns/ical/}calendar-color' => $this->themingDefaults->getColorPrimary(),
+						'{http://apple.com/ns/ical/}calendar-color' => '#007FFF',
 						'components' => 'VEVENT'
 					]);
+					]);
+					$this->calDav->createCalendar($principal, 'tasks', [
+						'{DAV:}displayname' => 'Tasks',
+						'{http://apple.com/ns/ical/}calendar-color' => $this->themingDefaults->getColorPrimary(),
+						'{http://apple.com/ns/ical/}calendar-color' => '#007FFF',
+						'components' => 'VTODO'
+					]);
 					]);
 				} catch (\Exception $e) {
 					\OC::$server->get(LoggerInterface::class)->error($e->getMessage(), ['exception' => $e]);
 				}