ProgressWidget: Better contrast in thin mode

Re #8400

Also, use the proper colors when switching between thick & thin.
pull/8403/head
NiLuJe 3 years ago
parent bc5da5276d
commit 4d261d29a4

@ -187,6 +187,7 @@ function ProgressWidget:updateStyle(thick, height)
self.bordersize = Screen:scaleBySize(1)
self.radius = Screen:scaleBySize(2)
self.bgcolor = Blitbuffer.COLOR_WHITE
self.fillcolor = Blitbuffer.COLOR_DARK_GRAY
self._orig_margin_v = nil
self._orig_bordersize = nil
if height then
@ -198,6 +199,7 @@ function ProgressWidget:updateStyle(thick, height)
self.bordersize = 0
self.radius = 0
self.bgcolor = Blitbuffer.COLOR_GRAY
self.fillcolor = Blitbuffer.COLOR_DIM_GRAY
self.ticks = nil
self._orig_margin_v = nil
self._orig_bordersize = nil

Loading…
Cancel
Save