2022-06-14 16:02:42 +00:00
|
|
|
|
|
|
|
local core = require("graphics.core")
|
|
|
|
|
|
|
|
local style = {}
|
|
|
|
|
2022-06-16 15:24:35 +00:00
|
|
|
local cpair = core.graphics.cpair
|
|
|
|
|
2022-07-05 16:46:31 +00:00
|
|
|
-- GLOBAL --
|
2022-06-14 16:02:42 +00:00
|
|
|
|
2022-06-16 15:24:35 +00:00
|
|
|
style.root = cpair(colors.black, colors.lightGray)
|
|
|
|
style.header = cpair(colors.white, colors.gray)
|
2022-08-09 04:40:50 +00:00
|
|
|
style.label = cpair(colors.gray, colors.lightGray)
|
2022-06-16 15:24:35 +00:00
|
|
|
|
2022-07-05 16:46:31 +00:00
|
|
|
style.colors = {
|
2022-07-09 17:43:38 +00:00
|
|
|
{ c = colors.red, hex = 0xdf4949 },
|
|
|
|
{ c = colors.orange, hex = 0xffb659 },
|
|
|
|
{ c = colors.yellow, hex = 0xfffc79 },
|
|
|
|
{ c = colors.lime, hex = 0x64dd20 },
|
|
|
|
{ c = colors.green, hex = 0x4aee8a },
|
|
|
|
{ c = colors.cyan, hex = 0x34bac8 },
|
|
|
|
{ c = colors.lightBlue, hex = 0x6cc0f2 },
|
|
|
|
{ c = colors.blue, hex = 0x0096ff },
|
|
|
|
{ c = colors.purple, hex = 0xb156ee },
|
|
|
|
{ c = colors.pink, hex = 0xf26ba2 },
|
|
|
|
{ c = colors.magenta, hex = 0xf9488a },
|
|
|
|
-- { c = colors.white, hex = 0xf0f0f0 },
|
|
|
|
{ c = colors.lightGray, hex = 0xcacaca },
|
|
|
|
{ c = colors.gray, hex = 0x575757 },
|
|
|
|
-- { c = colors.black, hex = 0x191919 },
|
|
|
|
-- { c = colors.brown, hex = 0x7f664c }
|
2022-07-05 16:46:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
-- MAIN LAYOUT --
|
|
|
|
|
2022-06-16 15:24:35 +00:00
|
|
|
style.reactor = {
|
|
|
|
-- reactor states
|
|
|
|
states = {
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.yellow),
|
2022-09-13 20:08:11 +00:00
|
|
|
text = "PLC OFF-LINE"
|
2022-06-16 15:24:35 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.white, colors.gray),
|
|
|
|
text = "DISABLED"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.green),
|
|
|
|
text = "ACTIVE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.red),
|
2022-09-13 20:08:11 +00:00
|
|
|
text = "SCRAMMED"
|
2022-09-03 17:10:51 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.orange),
|
2022-09-13 20:08:11 +00:00
|
|
|
text = "PLC FAULT"
|
2022-10-25 17:29:57 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.orange),
|
|
|
|
text = "NOT FORMED"
|
2022-06-16 15:24:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-14 16:02:42 +00:00
|
|
|
|
2022-06-25 20:21:57 +00:00
|
|
|
style.boiler = {
|
|
|
|
-- boiler states
|
|
|
|
states = {
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.yellow),
|
|
|
|
text = "OFF-LINE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.white, colors.gray),
|
|
|
|
text = "IDLE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.green),
|
|
|
|
text = "ACTIVE"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-02 21:24:52 +00:00
|
|
|
style.turbine = {
|
|
|
|
-- turbine states
|
|
|
|
states = {
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.yellow),
|
|
|
|
text = "OFF-LINE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.white, colors.gray),
|
|
|
|
text = "IDLE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.green),
|
|
|
|
text = "ACTIVE"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color = cpair(colors.black, colors.red),
|
|
|
|
text = "TRIP"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-14 16:02:42 +00:00
|
|
|
return style
|