mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-19 19:10:49 +00:00
unitframes: make text pastel colors optional
This commit is contained in:
+5
-3
@@ -2115,9 +2115,11 @@ function pfUI.uf.GetColor(self, preset)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- pastel
|
-- pastel
|
||||||
r = ( r + .75 ) * .5
|
if C.unitframes.pastel == "1" then
|
||||||
g = ( g + .75 ) * .5
|
r = ( r + .75 ) * .5
|
||||||
b = ( b + .75 ) * .5
|
g = ( g + .75 ) * .5
|
||||||
|
b = ( b + .75 ) * .5
|
||||||
|
end
|
||||||
|
|
||||||
return rgbhex(r,g,b)
|
return rgbhex(r,g,b)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user