add keyboard focus

This commit is contained in:
airstruck
2015-10-31 04:21:50 -04:00
parent b3b4f90b23
commit 1e668f8f09
13 changed files with 233 additions and 79 deletions

View File

@@ -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