mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
ProgressWidget: Better contrast in thin mode
Re #8400 Also, use the proper colors when switching between thick & thin.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user