Working version of a material design button with a paint callback.