// // UIColor+KXHex.h // QBCS // // Created by kuxuan on 2017/6/6. // Copyright © 2017年 kuxuan. All rights reserved. // #import @interface UIColor (KXHex) +(instancetype)themeColor; +(instancetype)themeColorWithAlpha; +(instancetype)lineColor; +(instancetype)lineColor1; +(instancetype)baseColor; +(instancetype)baseNewColor; +(instancetype)background; +(instancetype)titleColor; +(instancetype)detailTitleColor; +(instancetype)KXColorWithHex:(uint32_t)hex; +(instancetype)KXColorWithHex:(uint32_t)hex alpha:(CGFloat)alpha; +(instancetype)KXColorWithRed:(uint8_t)red green:(uint8_t)green blue:(uint8_t)blue; // 纵向颜色渐变 + (UIColor*)gradientHeightFromColor:(UIColor*)c1 toColor:(UIColor*)c2 withHeight:(int)height; // 横向颜色渐变 + (UIColor*)gradientWidthFromColor:(UIColor*)c1 toColor:(UIColor*)c2 withWidth:(int)width; @end