Added default x-padding to rss list
This commit is contained in:
parent
e86de45c63
commit
56ee85b60f
2 changed files with 2 additions and 3 deletions
|
@ -24,7 +24,6 @@ weekrowboxsize = (1, 0.044)
|
||||||
weekdaytextsize = 18
|
weekdaytextsize = 18
|
||||||
weekrownameboxsize = (0.143, 0.044)
|
weekrownameboxsize = (0.143, 0.044)
|
||||||
eventcirclehorizontalsize = 0.100
|
eventcirclehorizontalsize = 0.100
|
||||||
infolisthorizontalpos = 0.008
|
|
||||||
infolistsize = (1, 0.77)
|
infolistsize = (1, 0.77)
|
||||||
|
|
||||||
class MonthOvPanel (PanelDesign):
|
class MonthOvPanel (PanelDesign):
|
||||||
|
@ -71,7 +70,7 @@ class MonthOvPanel (PanelDesign):
|
||||||
size = self.__abs_pos__(infolistsize)
|
size = self.__abs_pos__(infolistsize)
|
||||||
size = (size[0], size[1] - month_height)
|
size = (size[0], size[1] - month_height)
|
||||||
info_list = RssPostListDesign(size, rss)
|
info_list = RssPostListDesign(size, rss)
|
||||||
info_list.pos = (int(month_pos[0] + infolisthorizontalpos * self.size[0]), int(month_pos[1] + month_height))
|
info_list.pos = (int(month_pos[0]), int(month_pos[1] + month_height))
|
||||||
self.draw_design(info_list)
|
self.draw_design(info_list)
|
||||||
|
|
||||||
def __draw_event_list_to_bottom__ (self, calendar):
|
def __draw_event_list_to_bottom__ (self, calendar):
|
||||||
|
|
|
@ -20,7 +20,7 @@ class RssPostListDesign (DesignEntity):
|
||||||
def __get_formatted_post__ (self, post):
|
def __get_formatted_post__ (self, post):
|
||||||
date = post.datetime.strftime('%d %b')
|
date = post.datetime.strftime('%d %b')
|
||||||
date = self.__remove_leading_zero__(date)
|
date = self.__remove_leading_zero__(date)
|
||||||
return [ '•', post.title ]
|
return [ '', '•', post.title ]
|
||||||
|
|
||||||
def __remove_leading_zero__(self, text):
|
def __remove_leading_zero__(self, text):
|
||||||
while text[0] is '0':
|
while text[0] is '0':
|
||||||
|
|
Loading…
Reference in a new issue