mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
ui-widgets: restore button border transparency values
This commit is contained in:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user