gui: round color values to 3 digits

This commit is contained in:
shagu
2025-08-20 14:52:37 +02:00
parent 01aa2cd1b9
commit 7905647abe
+5 -5
View File
@@ -193,13 +193,13 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
local preview = this.prev
function ColorPickerFrame.func()
local r,g,b = ColorPickerFrame:GetColorRGB()
local r, g, b = ColorPickerFrame:GetColorRGB()
local a = 1 - OpacitySliderFrame:GetValue()
r = round(r, 1)
g = round(g, 1)
b = round(b, 1)
a = round(a, 1)
r = round(r, 3)
g = round(g, 3)
b = round(b, 3)
a = round(a, 3)
preview:SetTexture(r,g,b,a)