Update inkycal_agenda.py
This commit is contained in:
parent
e8835c736c
commit
099dde31cb
@ -137,7 +137,7 @@ class Agenda(inkycal_module):
|
|||||||
# Set the width for date, time and event titles
|
# Set the width for date, time and event titles
|
||||||
date_width = int(max([self.font.getlength(
|
date_width = int(max([self.font.getlength(
|
||||||
dates['begin'].format(self.date_format, locale=self.language))
|
dates['begin'].format(self.date_format, locale=self.language))
|
||||||
for dates in agenda_events]) * 1.2)
|
for dates in agenda_events]))
|
||||||
logger.debug(f'date_width: {date_width}')
|
logger.debug(f'date_width: {date_width}')
|
||||||
|
|
||||||
# Calculate positions for each line
|
# Calculate positions for each line
|
||||||
@ -152,7 +152,7 @@ class Agenda(inkycal_module):
|
|||||||
|
|
||||||
time_width = int(max([self.font.getlength(
|
time_width = int(max([self.font.getlength(
|
||||||
events['begin'].format(self.time_format, locale=self.language))
|
events['begin'].format(self.time_format, locale=self.language))
|
||||||
for events in upcoming_events]))
|
for events in upcoming_events]+[self.font.getlength("all day")]))
|
||||||
logger.debug(f'time_width: {time_width}')
|
logger.debug(f'time_width: {time_width}')
|
||||||
|
|
||||||
# Calculate x-pos for time
|
# Calculate x-pos for time
|
||||||
|
Loading…
Reference in New Issue
Block a user