From af3a95586ea4aedddcfed20d317ef7aa49e55690 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 4 May 2020 00:00:21 +0200 Subject: [PATCH] unitframes: make text pastel colors optional --- api/unitframes.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index a5e4a740..08419e46 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -2115,9 +2115,11 @@ function pfUI.uf.GetColor(self, preset) end -- pastel - r = ( r + .75 ) * .5 - g = ( g + .75 ) * .5 - b = ( b + .75 ) * .5 + if C.unitframes.pastel == "1" then + r = ( r + .75 ) * .5 + g = ( g + .75 ) * .5 + b = ( b + .75 ) * .5 + end return rgbhex(r,g,b) end