You can disable the themes on the pageframe, of course the appearence will change, but at least it would match with the pageframe's color, assuming all pages have the same color. With Themes enabled, I guess you should use API to determine the actual color to copy it as fill color of the shape
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges