framedWithColor[color_] := Function[{position, label},
{Text[Framed[label, Background -> color], position]}
];
TreeForm[
{{1, 2}, {3, 4}},
VertexRenderingFunction -> ({
Text[Framed[#2, Background -> LightBlue], #1]
}&)framedWithColor[Pink]
]