E-Paper-Calendar/Calendar/SingelDayEventListDesign.py

12 lines
833 B
Python
Raw Normal View History

from EventListDesign import EventListDesign
from settings import hours
2019-04-05 11:37:51 +02:00
from Assets import fonts, defaultfontsize, colors
2019-03-26 22:31:05 +01:00
from TextFormatter import event_time_summary
font = fonts["regular"]
class SingelDayEventListDesign (EventListDesign):
"""Specialized event list for day list design."""
2019-04-05 11:37:51 +02:00
def __init__ (self, size, events, font_size = defaultfontsize, line_spacing=2, col_spacing=5, general_color=colors["fg"], background_color=colors["bg"], highlight_color=colors["hl"]):
prefix_func = lambda x : self.__get_event_prefix__(x)
2019-03-26 22:31:05 +01:00
super().__init__(size, events, text_size=font_size, line_spacing=line_spacing, col_spacing=col_spacing, event_prefix_func=event_time_summary, font_family=font, show_more_info=True, general_color=general_color, background_color=background_color, highlight_color = highlight_color)