Thomas Thurman of Metacity fame has written a lengthy blog post on how Metacity themes work. “This is an article about how to theme Metacity. It is a work in progress, and I have had to dig deeply to find some answers. GNOME lets you theme a bunch of different things, but we’re only talking about window border themes here, which some people call Metacity themes.”