gradient view code formatting