#62, #72 work on main layout, not using layout class, refactoring and bugfixes

This commit is contained in:
Mikayla Fischler
2022-06-16 11:24:35 -04:00
parent 971657c3d2
commit 7f007e032d
9 changed files with 133 additions and 126 deletions

View File

@@ -3,9 +3,33 @@ local core = require("graphics.core")
local style = {}
local cpair = core.graphics.cpair
-- MAIN LAYOUT --
style.root = core.graphics.cpair(colors.black, colors.lightGray)
style.header = core.graphics.cpair(colors.white,colors.gray)
style.root = cpair(colors.black, colors.lightGray)
style.header = cpair(colors.white, colors.gray)
style.reactor = {
-- reactor states
states = {
{
color = cpair(colors.black, colors.yellow),
text = "DISCONNECTED"
},
{
color = cpair(colors.white, colors.gray),
text = "DISABLED"
},
{
color = cpair(colors.black, colors.green),
text = "ACTIVE"
},
{
color = cpair(colors.black, colors.red),
text = "SCRAM!"
}
}
}
return style