Try menu_* colors before regular normal/focus (#949)

This commit is contained in:
Max 2016-06-05 11:08:43 -04:00 committed by Daniel Hahler
parent 547fec2824
commit 8ff60f034f
1 changed files with 2 additions and 2 deletions

View File

@ -102,9 +102,9 @@ end
-- @return item name, item background color, background image, item icon.
local function label(o)
if o.focused then
return colortext(o.name, theme.fg_focus), theme.bg_focus, nil, o.icon
return colortext(o.name, (theme.menu_fg_focus or theme.fg_focus)), (theme.menu_bg_focus or theme.bg_focus), nil, o.icon
else
return o.name, theme.bg_normal, nil, o.icon
return o.name, (theme.menu_bg_normal or theme.bg_normal), nil, o.icon
end
end