From 1e37b77a5404665ec1cf1d50173dd4f28197aee1 Mon Sep 17 00:00:00 2001 From: emilyboda <9170143+emilyboda@users.noreply.github.com> Date: Fri, 15 Mar 2024 13:07:21 -0400 Subject: [PATCH] add all day and right align time --- inkycal/modules/inkycal_agenda.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/inkycal/modules/inkycal_agenda.py b/inkycal/modules/inkycal_agenda.py index bcaf36f..54ca542 100755 --- a/inkycal/modules/inkycal_agenda.py +++ b/inkycal/modules/inkycal_agenda.py @@ -201,8 +201,13 @@ class Agenda(inkycal_module): # Check if event is all day, if not, add the time if not parser.all_day(_): write(im_black, (x_time, line_pos[cursor][1]), - (time_width, line_height), time, - font=self.font, alignment='left') + (time_width, line_height), time+" ", + font=self.font, alignment='right') + # Check if event is all day, if it is, add "all day" where time would be + if parser.all_day(_): + write(im_black, (x_time, line_pos[cursor][1]), + (time_width, line_height), "all day ", + font=self.font, alignment='right') write(im_black, (x_event, line_pos[cursor][1]), (event_width, line_height),