From 7a28c7d7aa5a38e6f3acb5ee9246017c96e8d8ff Mon Sep 17 00:00:00 2001 From: David Engster Date: Fri, 6 Apr 2018 22:13:18 +0200 Subject: [PATCH] [fix, UX] frontlightwidget: More space for text and centering Otherwise clock display will have a line break for low DPI (see issue --- frontend/ui/widget/frontlightwidget.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/ui/widget/frontlightwidget.lua b/frontend/ui/widget/frontlightwidget.lua index 1fee02e16..dd38b182e 100644 --- a/frontend/ui/widget/frontlightwidget.lua +++ b/frontend/ui/widget/frontlightwidget.lua @@ -413,9 +413,10 @@ function FrontLightWidget:addWarmthWidgets(num_warmth, step, vertical_group) text = " " .. math.floor(self.powerd.max_warmth_hour) .. ":" .. self.powerd.max_warmth_hour % 1 * 6 .. "0", face = self.larger_font_face, + alignment = "center", fgcolor =self.powerd.auto_warmth and Blitbuffer.COLOR_BLACK or Blitbuffer.COLOR_GREY, - width = self.screen_width * 0.1 + width = self.screen_width * 0.15 } local button_minus_one_hour = Button:new{ text = "−",