From 9e75284f5f293a96ceee14d9c76a1e34c4a29c05 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 4 Jan 2024 23:29:16 -0500 Subject: [PATCH] Draw status icons from bottom up --- py/hexagram/status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/hexagram/status.py b/py/hexagram/status.py index eb4ca28..2a05e68 100644 --- a/py/hexagram/status.py +++ b/py/hexagram/status.py @@ -157,7 +157,7 @@ class StatusIconBox(Gauge): pass def draw_fg(self, cr: cairo.Context): - x, y = 0, 0 + x, y = 0, self.height - self.ICON_HEIGHT for status_value in self.icons: icon = self.icons[status_value] @@ -170,4 +170,4 @@ class StatusIconBox(Gauge): if x >= self.width: x = 0 - y += self.ICON_HEIGHT + y -= self.ICON_HEIGHT