Nenhuma Descrição

UIColor+KXHex.h 867B

1234567891011121314151617181920212223242526272829
  1. //
  2. // UIColor+KXHex.h
  3. // QBCS
  4. //
  5. // Created by kuxuan on 2017/6/6.
  6. // Copyright © 2017年 kuxuan. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UIColor (KXHex)
  10. +(instancetype)themeColor;
  11. +(instancetype)themeColorWithAlpha;
  12. +(instancetype)lineColor;
  13. +(instancetype)lineColor1;
  14. +(instancetype)baseColor;
  15. +(instancetype)baseNewColor;
  16. +(instancetype)background;
  17. +(instancetype)titleColor;
  18. +(instancetype)detailTitleColor;
  19. +(instancetype)KXColorWithHex:(uint32_t)hex;
  20. +(instancetype)KXColorWithHex:(uint32_t)hex alpha:(CGFloat)alpha;
  21. +(instancetype)KXColorWithRed:(uint8_t)red green:(uint8_t)green blue:(uint8_t)blue;
  22. // 纵向颜色渐变
  23. + (UIColor*)gradientHeightFromColor:(UIColor*)c1 toColor:(UIColor*)c2 withHeight:(int)height;
  24. // 横向颜色渐变
  25. + (UIColor*)gradientWidthFromColor:(UIColor*)c1 toColor:(UIColor*)c2 withWidth:(int)width;
  26. @end