mirror of
https://github.com/airstruck/luigi.git
synced 2025-11-18 12:25:06 +00:00
13 lines
475 B
Lua
13 lines
475 B
Lua
local RESOURCE = (...):gsub('%.', '/') .. '/'
|
|
local REL = (...):gsub('[^.]*$', '')
|
|
|
|
return function (config)
|
|
config = config or {}
|
|
config.resources = config.resources or RESOURCE
|
|
config.backColor = config.backColor or { 40, 40, 40 }
|
|
config.lineColor = config.lineColor or { 60, 60, 60 }
|
|
config.textColor = config.textColor or { 240, 240, 240 }
|
|
config.highlight = config.highlight or { 0x00, 0x5c, 0x94 }
|
|
return require(REL .. 'light')(config)
|
|
end
|