Replaces hard coded hex values with those from class R.