From be09f1824a744a3fa2bf330988c5e6aae7d0dc7b Mon Sep 17 00:00:00 2001 From: s3lph Date: Thu, 14 Sep 2023 00:02:50 +0200 Subject: [PATCH] fix: overlapping text from ui_config --- flow3r_openhab/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flow3r_openhab/__init__.py b/flow3r_openhab/__init__.py index 51cf843..00efcbc 100644 --- a/flow3r_openhab/__init__.py +++ b/flow3r_openhab/__init__.py @@ -60,13 +60,13 @@ class Flow3rOpenhabMqtt(Application): ctx.font_size = 20 for i, text in enumerate(self.ui_config.get('labels', [])): phi = (2*math.pi/10)*(i+1)-(math.pi/2) - radius = 50 if i%2 else 80 + radius = 75 if i%2 else 90 x = radius*math.cos(phi) y = radius*math.sin(phi) ctx.rgb(1, 1, 1).move_to(x, y).text(text) mode = self.ui_config.get('mode') if mode: - ctx.font_size = 50 + ctx.font_size = 35 ctx.rgb(1, 1, 1).move_to(0, 0).text(mode) if CONFIG.get('debug_touch', False): ctx.line_width =1