Improve bar layout

This commit is contained in:
Markus Koch 2020-07-05 19:42:30 +02:00
parent a3f12aa96b
commit c43bfe425e

View File

@ -83,11 +83,11 @@ class display_playback(display):
# Playback info
w,h = self.d.textsize(self.info, font=self.font_info)
self.d.text((self.width-w, self.height - 1 - 10 - 1), self.info, font=self.font_info, fill=not self.fg)
self.d.text((self.width-w-2, self.height - 1 - 10 - 1), self.info, font=self.font_info, fill=not self.fg)
# Status icons
status = "".join([" " + icon + " " for icon in self.syms])
self.d.text((-1, self.height - 1 - 10 - 1), status, font=self.font_info, fill=not self.fg)
self.d.text((-2, self.height - 1 - 10 - 1), status, font=self.font_info, fill=not self.fg)
def render(self):
# Title (prerendered bitmap to shift)