Fine tuned rss font size

This commit is contained in:
Maximilian Giller 2019-03-16 18:37:34 +01:00
parent a139cd33f0
commit 1116513539

View file

@ -19,6 +19,8 @@ dayrowsarea_ypos = todayheader_size[1]
dayrowsarea_height = 1 - todayheader_size[1]
dayrow_min_format = 50 / 384
dayrow_max_format = 70 / 384
rss_x_fontsize = 14 / 384
rss_y_padding = 5
class DayListPanel (PanelDesign):
"""Overview that focuses on the current day and
@ -48,12 +50,13 @@ class DayListPanel (PanelDesign):
self.__draw_rss_infoarea__(rss)
def __draw_rss_infoarea__ (self, rss):
height = infoarea_replacedrowscount * self.dayrow_size[1] * self.size[1]
height = infoarea_replacedrowscount * self.dayrow_size[1] * self.size[1] - rss_y_padding
ypos = self.size[1] - height
size = (self.size[0], height)
fontsize = rss_x_fontsize * size[0]
pos = (0, ypos)
design = RssPostListDesign(size, rss)
design = RssPostListDesign(size, rss, fontsize)
design.pos = pos
self.draw_design(design)