Apply flat style to custom badges.

Follow-up to issue #159.