mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
add keyboard focus
This commit is contained in:
@@ -9,29 +9,23 @@ return function (config)
|
||||
local highlight = config.highlight or { 180, 180, 255 }
|
||||
|
||||
return {
|
||||
panel = {
|
||||
background = backColor,
|
||||
},
|
||||
button = {
|
||||
align = 'center middle',
|
||||
padding = 6,
|
||||
slices = RESOURCE .. 'button.png',
|
||||
minimumWidth = 24,
|
||||
minimumHeight = 24
|
||||
minimumHeight = 24,
|
||||
canFocus = true
|
||||
},
|
||||
button_hovered = {
|
||||
slices = RESOURCE .. 'button_hovered.png'
|
||||
},
|
||||
button_focused = {
|
||||
slices = RESOURCE .. 'button_focused.png',
|
||||
},
|
||||
button_pressed = {
|
||||
slices = RESOURCE .. 'button_pressed.png',
|
||||
},
|
||||
text = {
|
||||
align = 'left middle',
|
||||
slices = RESOURCE .. 'text.png',
|
||||
padding = 6,
|
||||
minimumWidth = 24,
|
||||
minimumHeight = 24
|
||||
},
|
||||
sash = {
|
||||
background = lineColor
|
||||
},
|
||||
@@ -44,6 +38,9 @@ return function (config)
|
||||
minimumWidth = 24,
|
||||
minimumHeight = 24
|
||||
},
|
||||
panel = {
|
||||
background = backColor,
|
||||
},
|
||||
progress = {
|
||||
slices = RESOURCE .. 'button_pressed.png',
|
||||
padding = 0,
|
||||
@@ -59,6 +56,17 @@ return function (config)
|
||||
},
|
||||
stepper = {
|
||||
},
|
||||
text = {
|
||||
align = 'left middle',
|
||||
slices = RESOURCE .. 'text.png',
|
||||
padding = 6,
|
||||
minimumWidth = 24,
|
||||
minimumHeight = 24,
|
||||
canFocus = true,
|
||||
},
|
||||
text_focused = {
|
||||
slices = RESOURCE .. 'text_focused.png',
|
||||
},
|
||||
}
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user