Theme JFScene on init, remove themeScene()
This commit is contained in:
parent
6877a57fcb
commit
cf57f6393b
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user