Wouldn't it be easier to just add borders to the skada bars so you don't need the background panel for borders around each bar ?
just search in bardisplay.lua and search for the line "bar.text=barlabel" and paste this under it. it will ad a 1 pixel border around each bar so you wont need the kgpanel.
Code:
--- insert this ---
if not bar.bg then
local frame = CreateFrame("Frame", nil, bar)
frame:ClearAllPoints()
frame:SetPoint("TOPLEFT", bar, "TOPLEFT", -1, 1)
frame:SetPoint("BOTTOMRIGHT", bar, "BOTTOMRIGHT", 1, -1)
frame:SetBackdrop({
edgeFile = [=[Interface\ChatFrame\ChatFrameBackground]=], edgeSize = 1,
bgFile = [=[Interface\ChatFrame\ChatFrameBackground]=],
insets = {left = 1, right = 1, top = 1, bottom = 1}})
frame:SetFrameLevel(bar:GetFrameLevel())
frame:SetBackdropColor(0, 0, 0, .3)
frame:SetBackdropBorderColor(0, 0, 0)
bar.bg = frame
end
--- end ---