From c2218f133b80b69f0aef074b643e37d74ae66c6e Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Tue, 7 Jan 2020 13:27:22 -0500 Subject: [PATCH] Preserve RGB info for a COLOR reminder. --- src/calendar.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/calendar.c b/src/calendar.c index 83040439..771d76f9 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -1444,6 +1444,11 @@ static void WriteSimpleEntryProtocol2(CalEntry *e, int today) PrintJSONKeyPairDate("from", e->trig.from); PrintJSONKeyPairInt("priority", e->trig.priority); + if (e->is_color) { + PrintJSONKeyPairInt("r", e->r); + PrintJSONKeyPairInt("g", e->g); + PrintJSONKeyPairInt("b", e->b); + } /* Only print rawbody if it differs from body */ if (strcmp(e->raw_text, e->text)) { PrintJSONKeyPairString("rawbody", e->raw_text);