<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -69,9 +69,11 @@ local Name_Update = function(self, event, unit)
 	self.name = string.utf8sub(n, 1, 3)
 
 	if UnitIsDeadOrGhost(unit) or not UnitIsConnected(unit) then
-		self.Health.bg:SetVertexColor(0.3, 0.3, 0.3)
+		self.Health:SetStatusBarColor(0.3, 0.3, 0.3)
 	else
-		self.Health.bg:SetVertexColor(GetClassColor(unit))
+		local r, g, b = GetClassColor(unit)
+		self.Health:SetStatusBarColor(r, g, b)
+		self.Health.bg:SetVertexColor(r * 0.3, g * 0.3, b * 0.3)
 	end
 end
 
@@ -80,6 +82,9 @@ local round = function(x, y)
 end
 
 local Health_Update = function(self, event, unit, bar, current, max)
+	if not self.unit then self.unit = unit end
+	if unit ~= self.unit then return end
+
 	local def = max - current
 	bar:SetValue(current)
 
@@ -94,9 +99,11 @@ local Health_Update = function(self, event, unit, bar, current, max)
 	end
 
 	if UnitIsDeadOrGhost(unit) or not UnitIsConnected(unit) then
-		bar.bg:SetVertexColor(0.3, 0.3, 0.3)
+		bar:SetStatusBarColor(0.3, 0.3, 0.3)
 	else
-		bar.bg:SetVertexColor(GetClassColor(unit))
+		local r, g, b = GetClassColor(unit)
+		bar:SetStatusBarColor(r, g, b)
+		bar.bg:SetVertexColor(r * 0.3, g * 0.3, b * 0.3)
 	end
 
 	-- Hopefully this fixes everything ...
@@ -161,7 +168,6 @@ local frame = function(settings, self, unit)
 	hp:SetStatusBarTexture(texture)
 	hp:SetOrientation(&quot;VERTICAL&quot;)
 	-- hp:SetFrameLevel(5)
-	hp:SetStatusBarColor(0, 0, 0, 0.75)
 	--hp:SetAlpha(0.)
 
 	local hpbg = hp:CreateTexture(nil, &quot;BACKGROUND&quot;)</diff>
      <filename>core.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bd6c7d8bf794921b840d336d52f023d9ce52d6e5</id>
    </parent>
  </parents>
  <author>
    <name>Zariel</name>
    <email>c.bannister@gmail.com</email>
  </author>
  <url>http://github.com/Zariel/ouf_grid/commit/5c5acaee379030168c5a980ebcc2cdc566808b34</url>
  <id>5c5acaee379030168c5a980ebcc2cdc566808b34</id>
  <committed-date>2009-09-30T04:45:35-07:00</committed-date>
  <authored-date>2009-09-30T04:45:35-07:00</authored-date>
  <message>Reverse the colors</message>
  <tree>e55bb2bdd6bfdff69b8ca7ebffad0e010f8b6278</tree>
  <committer>
    <name>Zariel</name>
    <email>c.bannister@gmail.com</email>
  </committer>
</commit>
