share header coloration code between OS X and iOS