FLEXColor.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // FLEXColor.h
  3. // FLEX
  4. //
  5. // Created by Benny Wong on 6/18/19.
  6. // Copyright © 2020 FLEX Team. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #define UIColorFromRGB(rgbValue, alp) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:alp]
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface FLEXColor : NSObject
  13. @property (readonly, class) UIColor *primaryBackgroundColor;
  14. + (UIColor *)primaryBackgroundColorWithAlpha:(CGFloat)alpha;
  15. @property (readonly, class) UIColor *secondaryBackgroundColor;
  16. + (UIColor *)secondaryBackgroundColorWithAlpha:(CGFloat)alpha;
  17. @property (readonly, class) UIColor *tertiaryBackgroundColor;
  18. + (UIColor *)tertiaryBackgroundColorWithAlpha:(CGFloat)alpha;
  19. @property (readonly, class) UIColor *groupedBackgroundColor;
  20. + (UIColor *)groupedBackgroundColorWithAlpha:(CGFloat)alpha;
  21. @property (readonly, class) UIColor *secondaryGroupedBackgroundColor;
  22. + (UIColor *)secondaryGroupedBackgroundColorWithAlpha:(CGFloat)alpha;
  23. // Text colors
  24. @property (readonly, class) UIColor *primaryTextColor;
  25. @property (readonly, class) UIColor *deemphasizedTextColor;
  26. // UI element colors
  27. @property (readonly, class) UIColor *tintColor;
  28. @property (readonly, class) UIColor *scrollViewBackgroundColor;
  29. @property (readonly, class) UIColor *iconColor;
  30. @property (readonly, class) UIColor *borderColor;
  31. @property (readonly, class) UIColor *toolbarItemHighlightedColor;
  32. @property (readonly, class) UIColor *toolbarItemSelectedColor;
  33. @property (readonly, class) UIColor *hairlineColor;
  34. @property (readonly, class) UIColor *destructiveColor;
  35. @end
  36. NS_ASSUME_NONNULL_END