|
|
@ -9,8 +9,8 @@ local _ = require("gettext")
|
|
|
|
local Screensaver = {
|
|
|
|
local Screensaver = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
local function createWidgetFromImage(imageWidget)
|
|
|
|
local function createWidgetFromImage(image_widget)
|
|
|
|
if imageWidget then
|
|
|
|
if image_widget then
|
|
|
|
local AlphaContainer = require("ui/widget/container/alphacontainer")
|
|
|
|
local AlphaContainer = require("ui/widget/container/alphacontainer")
|
|
|
|
local CenterContainer = require("ui/widget/container/centercontainer")
|
|
|
|
local CenterContainer = require("ui/widget/container/centercontainer")
|
|
|
|
return AlphaContainer:new{
|
|
|
|
return AlphaContainer:new{
|
|
|
@ -19,7 +19,7 @@ local function createWidgetFromImage(imageWidget)
|
|
|
|
width = Screen:getWidth(),
|
|
|
|
width = Screen:getWidth(),
|
|
|
|
CenterContainer:new{
|
|
|
|
CenterContainer:new{
|
|
|
|
dimen = Screen:getSize(),
|
|
|
|
dimen = Screen:getSize(),
|
|
|
|
imageWidget,
|
|
|
|
image_widget,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|