ui-widgets: restore button border transparency values

This commit is contained in:
shagu
2025-05-25 19:41:14 +02:00
parent ab2a1330fb
commit a034b8dc7c
+4 -4
View File
@@ -596,12 +596,12 @@ end
local function SetHighlightEnter()
if this.locked then return end
(this.backdrop or this):SetBackdropBorderColor(this.cr,this.cg,this.cb,1)
(this.backdrop or this):SetBackdropBorderColor(this.cr,this.cg,this.cb,(this.ca or 1))
end
local function SetHighlightLeave()
if this.locked then return end
(this.backdrop or this):SetBackdropBorderColor(this.rr,this.rg,this.rb,1)
(this.backdrop or this):SetBackdropBorderColor(this.rr,this.rg,this.rb,(this.ra or 1))
end
function pfUI.api.SetHighlight(frame, cr, cg, cb)
@@ -612,8 +612,8 @@ function pfUI.api.SetHighlight(frame, cr, cg, cb)
cr, cg, cb = color.r , color.g, color.b
end
frame.cr, frame.cg, frame.cb = cr, cg, cb
frame.rr, frame.rg, frame.rb = GetStringColor(pfUI_config.appearance.border.color)
frame.cr, frame.cg, frame.cb = cr, cg, cb, ca
frame.rr, frame.rg, frame.rb, frame.ra = GetStringColor(pfUI_config.appearance.border.color)
if not frame.pfEnterLeave then
if not frame.HookScript then frame.HookScript = HookScript end