all colors customizable with defined names, todo in app quiz builder
This commit is contained in:
@@ -8,8 +8,8 @@ local function index(window, q, callback)
|
||||
frame.visibility = 0
|
||||
label = window:newTextLabel(" " ..q.title.. " ",0,0,0,0,0,0,1,.2)
|
||||
label.align = ALIGN_CENTER
|
||||
label.textColor = color.white
|
||||
label.color = color.new("#363ac8")
|
||||
label.textColor = color.question_font
|
||||
label.color = color.question_bg
|
||||
label.drawBorder = false
|
||||
label:scaleFont(.4)
|
||||
label:centerFont()
|
||||
@@ -31,7 +31,7 @@ local function index(window, q, callback)
|
||||
plusLabel = frame:newImageLabel("assets/images/plus.png", 0, 0, 0, 0, .4125, .4, .175)
|
||||
plusLabel.square = "w"
|
||||
plusLabel.align = ALIGN_CENTER
|
||||
plusLabel.textColor = color.white
|
||||
plusLabel.textColor = color.question_font
|
||||
-- plusLabel.visibility=0
|
||||
|
||||
-- Right image: takes up 0.58 to 1.0 of width
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -14,8 +14,8 @@ local function index(window, q, callback)
|
||||
frame.visibility = 0
|
||||
label = window:newTextLabel(" " ..q.title.. " ",0,0,0,0,0,0,1,.2)
|
||||
label.align = ALIGN_CENTER
|
||||
label.textColor = color.white
|
||||
label.color = color.new("#363ac8")
|
||||
label.textColor = color.question_font
|
||||
label.color = color.question_bg
|
||||
label:scaleFont(.4)
|
||||
label:centerFont()
|
||||
label.drawBorder = false
|
||||
|
||||
@@ -13,8 +13,8 @@ local function index(window, q, callback)
|
||||
label.visibility = 0--q.cosmetics.visibility
|
||||
label.align = ALIGN_CENTER
|
||||
label:fullFrame()
|
||||
label.textColor = color.white
|
||||
label.color = color.new("#363ac8")
|
||||
label.textColor = color.question_font
|
||||
label.color = color.question_bg
|
||||
label:centerFont()
|
||||
label:scaleFont(.075)
|
||||
label.drawBorder = false
|
||||
|
||||
@@ -19,8 +19,8 @@ local function index(window, q, callback)
|
||||
frame.visibility = 0
|
||||
label = window:newTextLabel(" " ..q.title.. " ",0,0,0,0,0,0,1,.2)
|
||||
label.align = ALIGN_CENTER
|
||||
label.textColor = color.white
|
||||
label.color = color.new("#363ac8")
|
||||
label.textColor = color.question_font
|
||||
label.color = color.question_bg
|
||||
label:scaleFont(.4)
|
||||
label:centerFont()
|
||||
label.drawBorder = false
|
||||
|
||||
@@ -19,8 +19,8 @@ local function index(window, q, callback)
|
||||
frame.visibility = 0
|
||||
label = window:newTextLabel(" " ..q.title.. " ",0,0,0,0,0,0,1,.2)
|
||||
label.align = ALIGN_CENTER
|
||||
label.textColor = color.white
|
||||
label.color = color.new("#363ac8")
|
||||
label.textColor = color.question_font
|
||||
label.color = color.question_bg
|
||||
label:centerFont()
|
||||
label:scaleFont(.4)
|
||||
label.drawBorder = false
|
||||
|
||||
+2
-2
@@ -14,8 +14,8 @@ local function index(window, q, callback)
|
||||
frame.visibility = 0
|
||||
label = window:newTextLabel(" " ..q.title.. " ",0,0,0,0,0,0,1,.2)
|
||||
label.align = ALIGN_CENTER
|
||||
label.textColor = color.white
|
||||
label.color = color.new("#363ac8")
|
||||
label.textColor = color.question_font
|
||||
label.color = color.question_bg
|
||||
label:scaleFont(.4)
|
||||
label:centerFont()
|
||||
label.drawBorder = false
|
||||
|
||||
Reference in New Issue
Block a user