Improve bar layout
This commit is contained in:
parent
a3f12aa96b
commit
c43bfe425e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user