all colors customizable with defined names, todo in app quiz builder
This commit is contained in:
@@ -20,15 +20,15 @@ local selected
|
||||
local function index(window, q, callback)
|
||||
label = window:newTextLabel(" " ..q.title.. " ",noOf(0,0,1,.3))
|
||||
label.align = ALIGN_CENTER
|
||||
label.textColor = color.white
|
||||
label.color = color.new("#363ac8")
|
||||
label.textColor = color.question_font
|
||||
label.color = color.question_bg
|
||||
label:setFont(50)
|
||||
label:centerFont()
|
||||
label:scaleFont(2/3)
|
||||
label.drawBorder = false
|
||||
|
||||
local choices = window:newFrame(noOf(0,.3,1,.7))
|
||||
choices.color = color.new("#363ac8")
|
||||
choices.color = color.question_bg
|
||||
|
||||
function choices:newChoice(choice, i)
|
||||
local c = choices:newFrame(noOf(.25,(i-1)/#q.choices,.5,1/#q.choices))
|
||||
@@ -53,7 +53,7 @@ local function index(window, q, callback)
|
||||
c.drawBorder = false
|
||||
local choiceText = c:newTextLabel(choice,noOf(.3,0,1,1))
|
||||
choiceText.visibility = 0
|
||||
choiceText.textColor = color.white
|
||||
choiceText.textColor = color.question_font
|
||||
-- choiceText.align = window.ALIGN_CENTER
|
||||
choiceText:setFont(40)
|
||||
choiceText:centerFont()
|
||||
|
||||
Reference in New Issue
Block a user