Changes
bad highlight support
_good_stat_color = "#ffff40",
_good_stat_color = "#ffff40",
_outstanding_stat_color = "#73ff4d",
_outstanding_stat_color = "#73ff4d",
_bad_stat_color = "#bcbcbc",
_emphasis_template = "'''${value}'''",
_emphasis_template = "'''${value}'''",
_transparent = "transparent",
_transparent = "transparent",
end
end
function BaseTable:get_bg_color(default, value, operator, outstanding, good)
function BaseTable:get_bg_color(default, value, operator, outstanding, good, bad)
if not value then
if not value then
return default or self._transparent
return default or self._transparent
elseif good and comparison(value, tonumber(good)) then
elseif good and comparison(value, tonumber(good)) then
return self._good_stat_color
return self._good_stat_color
elseif bad and not comparison(value, tonumber(bad)) then
return self._bad_stat_color
else
else
return default or self._transparent
return default or self._transparent