mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
89 lines
2.2 KiB
Lua
89 lines
2.2 KiB
Lua
local RESOURCE = (...):gsub('%.', '/') .. '/'
|
|
|
|
return function (config)
|
|
config = config or {}
|
|
|
|
local backColor = config.backColor or { 240, 240, 240 }
|
|
local lineColor = config.lineColor or { 220, 220, 220 }
|
|
local highlight = config.highlight or { 0x19, 0xAE, 0xFF }
|
|
|
|
return {
|
|
button = {
|
|
align = 'center middle',
|
|
padding = 6,
|
|
slices = RESOURCE .. 'button.png',
|
|
minwidth = 24,
|
|
minheight = 24,
|
|
canFocus = true
|
|
},
|
|
button_hovered = {
|
|
slices = RESOURCE .. 'button_hovered.png'
|
|
},
|
|
button_focused = {
|
|
slices = RESOURCE .. 'button_focused.png',
|
|
},
|
|
button_pressed = {
|
|
slices = RESOURCE .. 'button_pressed.png',
|
|
},
|
|
menu = {
|
|
height = 24,
|
|
},
|
|
['menu.item'] = {
|
|
padding = 4,
|
|
align = 'left middle',
|
|
},
|
|
['menu.item_active'] = {
|
|
background = highlight,
|
|
},
|
|
submenu = {
|
|
padding = 10,
|
|
margin = -10,
|
|
slices = RESOURCE .. 'submenu.png',
|
|
},
|
|
sash = {
|
|
background = lineColor
|
|
},
|
|
sash_hovered = {
|
|
background = highlight
|
|
},
|
|
slider = {
|
|
slices = RESOURCE .. 'button_pressed.png',
|
|
padding = 0,
|
|
minwidth = 24,
|
|
minheight = 24
|
|
},
|
|
panel = {
|
|
background = backColor,
|
|
},
|
|
progress = {
|
|
slices = RESOURCE .. 'button_pressed.png',
|
|
padding = 0,
|
|
minwidth = 24,
|
|
minheight = 24
|
|
},
|
|
['progress.bar'] = {
|
|
slices = RESOURCE .. 'progress.png',
|
|
padding = 0,
|
|
minwidth = 12,
|
|
},
|
|
slider_hovered = {
|
|
},
|
|
stepper = {
|
|
},
|
|
text = {
|
|
align = 'left middle',
|
|
slices = RESOURCE .. 'text.png',
|
|
padding = 6,
|
|
minwidth = 24,
|
|
minheight = 24,
|
|
canFocus = true,
|
|
cursor = 'ibeam',
|
|
highlight = highlight,
|
|
},
|
|
text_focused = {
|
|
slices = RESOURCE .. 'text_focused.png',
|
|
},
|
|
}
|
|
|
|
end
|