use attributes only in iOS 7 or later
add color setting macros