"A macaroni (or formerly maccaroni) in mid-18th-century England was a fashionable fellow who dressed and even spoke in an outlandishly affected and epicene manner. The term pejoratively referred to a man who "exceeded the ordinary bounds of fashion" in terms of clothes, fastidious eating and gambling."
As in, "Stuck a feather in his hat, and called him Macaroni!"