Theme JFScene on init, remove themeScene()
This commit is contained in:
parent
6877a57fcb
commit
cf57f6393b
|
@ -1,4 +1,6 @@
|
||||||
sub init()
|
sub init()
|
||||||
|
m.top.backgroundColor = "#101010"
|
||||||
|
m.top.backgroundURI = ""
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
function onKeyEvent(key as string, press as boolean) as boolean
|
function onKeyEvent(key as string, press as boolean) as boolean
|
||||||
|
|
|
@ -8,15 +8,15 @@ sub Main()
|
||||||
m.port = CreateObject("roMessagePort")
|
m.port = CreateObject("roMessagePort")
|
||||||
m.screen.setMessagePort(m.port)
|
m.screen.setMessagePort(m.port)
|
||||||
m.scene = m.screen.CreateScene("JFScene")
|
m.scene = m.screen.CreateScene("JFScene")
|
||||||
|
|
||||||
m.screen.show()
|
m.screen.show()
|
||||||
|
|
||||||
m.overhang = CreateObject("roSGNode", "JFOverhang")
|
m.overhang = CreateObject("roSGNode", "JFOverhang")
|
||||||
|
m.scene.insertChild(m.overhang, 0)
|
||||||
|
|
||||||
m.page_size = 50
|
m.page_size = 50
|
||||||
|
|
||||||
themeScene()
|
|
||||||
|
|
||||||
app_start:
|
app_start:
|
||||||
|
m.overhang.title = ""
|
||||||
' First thing to do is validate the ability to use the API
|
' First thing to do is validate the ability to use the API
|
||||||
LoginFlow()
|
LoginFlow()
|
||||||
|
|
||||||
|
|
|
@ -21,14 +21,6 @@ function getButton(msg, subnode = "buttons" as string) as object
|
||||||
return active_button
|
return active_button
|
||||||
end function
|
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
|
function leftPad(base as string, fill as string, length as integer) as string
|
||||||
while len(base) < length
|
while len(base) < length
|
||||||
base = fill + base
|
base = fill + base
|
||||||
|
|
Loading…
Reference in New Issue
Block a user