Theme JFScene on init, remove themeScene()

This commit is contained in:
Charles Ewert 2020-03-08 00:58:39 -05:00
parent 6877a57fcb
commit cf57f6393b
3 changed files with 6 additions and 12 deletions

View File

@ -1,4 +1,6 @@
sub init()
m.top.backgroundColor = "#101010"
m.top.backgroundURI = ""
end sub
function onKeyEvent(key as string, press as boolean) as boolean

View File

@ -8,15 +8,15 @@ sub Main()
m.port = CreateObject("roMessagePort")
m.screen.setMessagePort(m.port)
m.scene = m.screen.CreateScene("JFScene")
m.screen.show()
m.overhang = CreateObject("roSGNode", "JFOverhang")
m.scene.insertChild(m.overhang, 0)
m.page_size = 50
themeScene()
app_start:
m.overhang.title = ""
' First thing to do is validate the ability to use the API
LoginFlow()

View File

@ -21,14 +21,6 @@ function getButton(msg, subnode = "buttons" as string) as object
return active_button
end function
sub themeScene()
' Takes a scene and applies a consisten UI Theme
m.scene.backgroundColor = "#101010"
m.scene.backgroundURI = ""
m.scene.insertChild(m.overhang, 0)
end sub
function leftPad(base as string, fill as string, length as integer) as string
while len(base) < length
base = fill + base