code cleanup

This commit is contained in:
Matthias Richter 2016-01-02 14:38:15 +01:00
parent dc967192b7
commit 036e2bfe0e

View file

@ -6,9 +6,9 @@ local theme = {}
theme.cornerRadius = 4 theme.cornerRadius = 4
theme.color = { theme.color = {
normal = {bg = { 66, 66, 66}, fg = {188,188,188}}, normal = {bg = { 66, 66, 66}, fg = {188,188,188}},
hovered = {bg = { 50,153,187}, fg = {255,255,255}}, hover = {bg = { 50,153,187}, fg = {255,255,255}},
active = {bg = {255,153, 0}, fg = {225,225,225}} active = {bg = {255,153, 0}, fg = {225,225,225}}
} }
@ -18,7 +18,7 @@ function theme.getStateName(id)
return 'active' return 'active'
end end
if theme.core.isHot(id) then if theme.core.isHot(id) then
return 'hovered' return 'hover'
end end
return 'normal' return 'normal'
end end