Adding gradient support to views