Place text in freeform container
This commit is contained in:
parent
3bb7a69577
commit
f06a979536
@ -5,6 +5,7 @@ local Text = require("gfx.text")
|
|||||||
local List = require("gfx.list")
|
local List = require("gfx.list")
|
||||||
local Event = require("gfx.event")
|
local Event = require("gfx.event")
|
||||||
local Padding = require("gfx.padding")
|
local Padding = require("gfx.padding")
|
||||||
|
local Container = require("gfx.container")
|
||||||
|
|
||||||
|
|
||||||
local CACHE_FILE = "/.storage.cache"
|
local CACHE_FILE = "/.storage.cache"
|
||||||
@ -308,7 +309,16 @@ local PAGES = {
|
|||||||
element = title
|
element = title
|
||||||
}
|
}
|
||||||
|
|
||||||
return renderDefault(state, paddedTitle)
|
local stuffContainer = Container:new{
|
||||||
|
children = {
|
||||||
|
paddedTitle
|
||||||
|
},
|
||||||
|
width = state.width,
|
||||||
|
height = state.height,
|
||||||
|
parent = state.monitor
|
||||||
|
}
|
||||||
|
|
||||||
|
return renderDefault(state, stuffContainer)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
REQUEST = function(state, newPage)
|
REQUEST = function(state, newPage)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user