Add new options to screensaver (#3535)

* Prevent open screensaver more than one in the same time

* Add option to enable/disable background in message screensaver

* fallback to random images if this book cover is excluded feature + fix Disabled (leave screen/page as it is)

* Autostretch disable by default, more fallback options, leave screen as it is
This commit is contained in:
Robert
2017-12-17 18:27:24 +01:00
committed by Frans de Jonge
parent 70f2aa09ea
commit efa0d06df9
14 changed files with 633 additions and 202 deletions

View File

@@ -67,11 +67,15 @@ function ReaderProgress:getTotalStats(stats_day)
end
function ReaderProgress:getStatusContent(width)
local close_button = nil
if self.readonly ~= true then
close_button = CloseButton:new{ window = self }
end
return VerticalGroup:new{
align = "left",
OverlapGroup:new{
dimen = Geom:new{ w = width, h = Size.item.height_default },
CloseButton:new{ window = self },
close_button,
},
self:genSingleHeader(_("Last week")),
self:genSummaryWeek(width),