mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
always show progress bar in flipping mode
tap on progress bar in flipping mode will goto corresponding page
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
local Widget = require("ui/widget/widget")
|
||||
local Geom = require("ui/geometry")
|
||||
|
||||
--[[
|
||||
ProgressWidget shows a progress bar
|
||||
@@ -22,6 +23,11 @@ end
|
||||
|
||||
function ProgressWidget:paintTo(bb, x, y)
|
||||
local my_size = self:getSize()
|
||||
self.dimen = Geom:new{
|
||||
x = x, y = y,
|
||||
w = my_size.w,
|
||||
h = my_size.h
|
||||
}
|
||||
bb:paintRoundedRect(x, y, my_size.w, my_size.h, self.bgcolor, self.radius)
|
||||
bb:paintBorder(x, y, my_size.w, my_size.h,
|
||||
self.bordersize, self.bordercolor, self.radius)
|
||||
|
||||
Reference in New Issue
Block a user