local RUI = LibStub("RUI-1.0")
if not RUI then return end

-- RUI.Widget.Separator(parent, x, y, width [, color]) → Texture
-- 1px horizontal rule. Defaults to BORDER color. Use ACCENT for a strong divider.
function RUI.Widget.Separator(parent, x, y, width, color)
    color = color or RUI.C.BORDER
    local t = parent:CreateTexture(nil, "BORDER")
    t:SetColorTexture(color.r, color.g, color.b, color.a)
    t:SetHeight(1)
    t:SetPoint("TOPLEFT", parent, "TOPLEFT", x, y)
    t:SetWidth(width)
    return t
end
