From 6caa442263b980026dacc16f356b9c168cd4868a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 11 Oct 2019 12:42:09 +0100 Subject: [PATCH] Calendar colors --- epicyon-calendar.css | 8 +++++--- webinterface.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/epicyon-calendar.css b/epicyon-calendar.css index 4e1cc8034..1a5183bfc 100644 --- a/epicyon-calendar.css +++ b/epicyon-calendar.css @@ -8,6 +8,8 @@ --today-circle: red; --event-background: orange; --event-foreground:white; + --title-text: #282c37; + --title-background: #222; } body { @@ -120,13 +122,13 @@ tr:nth-child(even) > .calendar__day__cell:nth-child(even) { .calendar__day__cell[data-today-event] { border-radius: 50%; - background-color: var(--lines-color); - border: 4px solid var(--event-foreground); + background-color: var(--event-background); + border: 4px solid var(--today-circle); color: var(--event-foreground); text-align: center; } .calendar__day__cell[data-today-event]:after { - content: attr(data-event); + content: attr(data-today-event); color: var(--day-number); display: block; font-weight: 400; diff --git a/webinterface.py b/webinterface.py index d60fd219e..4dee6f370 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2895,7 +2895,7 @@ def htmlCalendar(translate: {}, \ if currDate.month==monthNumber: if dayOfMonth==currDate.day: isToday=True - if dayOfMonth==11: + if dayOfMonth==4: events[str(dayOfMonth)]=[{"test": 1},{"test2": 2},{"test3": 3},{"test4": 4}] if events.get(str(dayOfMonth)): eventDots=''