[fix, UX] frontlightwidget: More space for text and centering

Otherwise clock display will have a line break for low DPI (see issue
This commit is contained in:
David Engster
2018-04-06 22:13:18 +02:00
committed by Frans de Jonge
parent 7c527aa5dd
commit 7a28c7d7aa

View File

@@ -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 = "",