changing private variable to protected to add gradient color to label through an overided class