Adds flatten option to toggle text and box shadows.