I am using the following code to get rounded corners as well as a colored outline:
Use this customize according to your need.