From c43bfe425ea547a936486ea189d4b3a9b47ec01b Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 5 Jul 2020 19:42:30 +0200 Subject: [PATCH] Improve bar layout --- software/webradio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/webradio.py b/software/webradio.py index b48e8b7..f600cc4 100644 --- a/software/webradio.py +++ b/software/webradio.py @@ -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)