unitframes: unify pastel color calculation

This commit is contained in:
shagu
2025-07-20 20:42:44 +02:00
parent c2ee470749
commit 6fe1cf38ad
+1 -3
View File
@@ -2631,9 +2631,7 @@ function pfUI.uf.GetColor(self, preset)
-- pastel
if C.unitframes.pastel == "1" then
r = ( r + .75 ) * .5
g = ( g + .75 ) * .5
b = ( b + .75 ) * .5
r, g, b = (r + .5) * .5, (g + .5) * .5, (b + .5) * .5
end
return rgbhex(r,g,b)