omz / ColorSense-for-Xcode

Plugin for Xcode to make working with colors more visual

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does it support some color macros?

heramerom opened this issue · comments

When I coding, I usually define some color macros like this:

#define UIColor4i(r, g, b, a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)/100.0f]
#define UIColor3i(r, g, b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1.0f]
#define UIColor4f(r, g, b, a) [UIColor colorWithRed:(r) green:(g) blue:(b) alpha:(a)]

and I used the "UIColor3i(255, 255, 255)" to set the color.

But I found that this plugin not supports those defines, so I modify it, and it works ok for those defines.

Could you add some color macros to quickly set colors?

Thank you very much to review.